diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 19:39:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 21:36:09 +0100 |
commit | 823c618d241e7e45f31981c437215bc35664c385 (patch) | |
tree | 39220111d78758ced0a764e55d23c70020b34c69 /src/pcm_buffer.h | |
parent | 51cb6a0a44f8a70927de6516782e3a9a02b3b3dc (diff) | |
download | mpd-823c618d241e7e45f31981c437215bc35664c385.tar.gz mpd-823c618d241e7e45f31981c437215bc35664c385.tar.xz mpd-823c618d241e7e45f31981c437215bc35664c385.zip |
{encoder,output}_api.h: allow compiling as C++
Diffstat (limited to 'src/pcm_buffer.h')
-rw-r--r-- | src/pcm_buffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcm_buffer.h b/src/pcm_buffer.h index 4502976f6..5d6382d5e 100644 --- a/src/pcm_buffer.h +++ b/src/pcm_buffer.h @@ -62,6 +62,10 @@ pcm_buffer_deinit(struct pcm_buffer *buffer) buffer->buffer = NULL; } +#ifdef __cplusplus +extern "C" { +#endif + /** * Get the buffer, and guarantee a minimum size. This buffer becomes * invalid with the next pcm_buffer_get() call. @@ -74,4 +78,8 @@ G_GNUC_MALLOC void * pcm_buffer_get(struct pcm_buffer *buffer, size_t size); +#ifdef __cplusplus +} +#endif + #endif |