diff options
author | Ralph Giles <giles@mozilla.com> | 2012-05-24 03:33:14 +0400 |
---|---|---|
committer | Ralph Giles <giles@mozilla.com> | 2012-05-24 03:33:14 +0400 |
commit | 64c2dd7d8e6bc5d68166d73b2e3f4e1cb59f7dcb (patch) | |
tree | 80b127cb135eec2795ae99ce21a48fa84d51b801 /include | |
parent | e052947f18a9b2e30ba1ef4db56a08aba8688bc2 (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.h | 8 |
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 */ |