[babl] Add extern "C" to the header for C++ friendliness.



commit 9534deda19c6ec95a2917072404211890af5b132
Author: Hubert Figuiere <hub figuiere net>
Date:   Sat May 16 03:27:03 2009 -0400

    Add extern "C" to the header for C++ friendliness.
---
 ChangeLog   |    6 ++++++
 babl/babl.h |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index af0850a..13a62ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-16  Hubert Figuiere  <hub figuiere net>
+
+	Add extern "C" to the header for C++ friendliness.
+	
+	* babl/babl.h
+
 2009-04-04  Martin Nordholts  <martinn svn gnome org>
 
 	Bug 568576 â?? [PATCH] undefined operation fix
diff --git a/babl/babl.h b/babl/babl.h
index c9d7608..44276a4 100644
--- a/babl/babl.h
+++ b/babl/babl.h
@@ -19,6 +19,10 @@
 #ifndef _BABL_H
 #define _BABL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define BABL_INSIDE_BABL_H
 #include <babl/babl-macros.h>
 #include <babl/babl-types.h>
@@ -192,4 +196,8 @@ Babl * babl_conversion_new (void *first_arg,
 #endif
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]