Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2012-05-24 03:33:14 +0400
committerRalph Giles <giles@mozilla.com>2012-05-24 03:33:14 +0400
commit64c2dd7d8e6bc5d68166d73b2e3f4e1cb59f7dcb (patch)
tree80b127cb135eec2795ae99ce21a48fa84d51b801 /include
parente052947f18a9b2e30ba1ef4db56a08aba8688bc2 (diff)
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++.
Diffstat (limited to 'include')
-rw-r--r--include/opus_multistream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/opus_multistream.h b/include/opus_multistream.h
index 24c524e0..e6562a7e 100644
--- 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;
@@ -161,4 +165,8 @@ OPUS_EXPORT int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...
/** Deallocate a multistream decoder state object */
OPUS_EXPORT void opus_multistream_decoder_destroy(OpusMSDecoder *st);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPUS_MULTISTREAM_H */