diff options
author | Chris Robinson <[email protected]> | 2018-03-09 17:24:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-09 17:24:03 -0800 |
commit | 30821e978b69fa017cbcd76e5ff25c62f16b1d2a (patch) | |
tree | 6c47c2d5f96d95c46de636a79cbb2e21fb39308f /Alc/ringbuffer.h | |
parent | c0e7a5b8b07132f39e7bf60371586d5d56984e14 (diff) |
Add extern "C" to some headers
Diffstat (limited to 'Alc/ringbuffer.h')
-rw-r--r-- | Alc/ringbuffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/ringbuffer.h b/Alc/ringbuffer.h index bcf67374..0d05ec84 100644 --- a/Alc/ringbuffer.h +++ b/Alc/ringbuffer.h @@ -4,6 +4,10 @@ #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct ll_ringbuffer ll_ringbuffer_t; typedef struct ll_ringbuffer_data { char *buf; @@ -66,4 +70,8 @@ size_t ll_ringbuffer_write(ll_ringbuffer_t *rb, const char *src, size_t cnt); /** Advance the write pointer `cnt' places. */ void ll_ringbuffer_write_advance(ll_ringbuffer_t *rb, size_t cnt); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* RINGBUFFER_H */ |