summaryrefslogtreecommitdiffstats
path: root/src/canberra.h
diff options
context:
space:
mode:
authorMarc-Andre Lureau <marcandre.lureau@gmail.com>2008-06-11 14:37:04 +0300
committerLennart Poettering <mzfuryy@0pointer.net>2008-06-11 13:49:33 +0200
commit6e5e43791fc7034d3f221554743d11e2216e764b (patch)
treea090abf93875483a340661877eb82f886453604d /src/canberra.h
parentbbab182c02f75846f706e155c59090a1fa9c9b52 (diff)
Add missing cplusplus C declaration in headers
Signed-off-by: Marc-Andre Lureau <marcandre.lureau@gmail.com> Signed-off-by: Lennart Poettering <mzfuryy@0pointer.net>
Diffstat (limited to 'src/canberra.h')
-rw-r--r--src/canberra.h8
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