From 6e5e43791fc7034d3f221554743d11e2216e764b Mon Sep 17 00:00:00 2001 From: Marc-Andre Lureau Date: Wed, 11 Jun 2008 14:37:04 +0300 Subject: Add missing cplusplus C declaration in headers Signed-off-by: Marc-Andre Lureau Signed-off-by: Lennart Poettering --- src/canberra.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/canberra.h') 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 #include +#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 -- cgit v1.2.1