From 64c2dd7d8e6bc5d68166d73b2e3f4e1cb59f7dcb Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Wed, 23 May 2012 16:33:14 -0700 Subject: [PATCH] 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++. --- include/opus_multistream.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/opus_multistream.h b/include/opus_multistream.h index 24c524e0c..e6562a7e5 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 */ -- GitLab