shithub: opus

Download patch

ref: 64c2dd7d8e6bc5d68166d73b2e3f4e1cb59f7dcb
parent: e052947f18a9b2e30ba1ef4db56a08aba8688bc2
author: Ralph Giles <[email protected]>
date: Wed May 23 12:33:14 EDT 2012

Add extern "C" protection to opus_multistream.h.

Unlike the other headers, opus_multistream.h didn't declare
itself to be C code, causing confusing errors when the caller
tries to use the functions from C++.

--- a/include/opus_multistream.h
+++ b/include/opus_multistream.h
@@ -35,6 +35,10 @@
 
 #include "opus.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct OpusMSEncoder OpusMSEncoder;
 typedef struct OpusMSDecoder OpusMSDecoder;
 
@@ -160,5 +164,9 @@
 
 /** Deallocate a multistream decoder state object */
 OPUS_EXPORT void opus_multistream_decoder_destroy(OpusMSDecoder *st);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* OPUS_MULTISTREAM_H */