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-gtk.h | 4 ++++ src/canberra.h | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'src') 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 #include +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 #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