diff options
author | Marc-Andre Lureau <marcandre.lureau@gmail.com> | 2008-06-11 14:37:04 +0300 |
---|---|---|
committer | Lennart Poettering <mzfuryy@0pointer.net> | 2008-06-11 13:49:33 +0200 |
commit | 6e5e43791fc7034d3f221554743d11e2216e764b (patch) | |
tree | a090abf93875483a340661877eb82f886453604d | |
parent | bbab182c02f75846f706e155c59090a1fa9c9b52 (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>
-rw-r--r-- | src/canberra-gtk.h | 4 | ||||
-rw-r--r-- | src/canberra.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/canberra-gtk.h b/src/canberra-gtk.h index 0223768..d359797 100644 --- a/src/canberra-gtk.h +++ b/src/canberra-gtk.h @@ -24,6 +24,8 @@ #include <canberra.h> #include <gtk/gtk.h> +G_BEGIN_DECLS + ca_context *ca_gtk_context_get(void); int ca_gtk_proplist_set_for_widget(ca_proplist *p, GtkWidget *w); @@ -36,4 +38,6 @@ int ca_gtk_play_for_event(GdkEvent *e, uint32_t id, ...) G_GNUC_NULL_TERMINATED; void ca_gtk_widget_disable_sounds(GtkWidget *w, gboolean enable); +G_END_DECLS + #endif 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 |