diff options
Diffstat (limited to 'src/canberra.h')
-rw-r--r-- | src/canberra.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/canberra.h b/src/canberra.h index 2c2d807..fc9ef0a 100644 --- a/src/canberra.h +++ b/src/canberra.h @@ -25,6 +25,10 @@ #include <sys/param.h> #include <inttypes.h> +#ifdef __cplusplus +extern "C" { +#endif + #ifndef __GNUC__ /* Make sure __attribute__ works on non-gcc systems. Yes, might be a bit ugly */ #define __attribute__(x) @@ -426,4 +430,8 @@ int ca_context_cancel(ca_context *c, uint32_t id); const char *ca_strerror(int code); +#ifdef __cplusplus +} +#endif + #endif |