[Cogl] [PATCH] cogl-error.h: add COGL_BEGIN_DECLS/COGL_END_DECLS

Andreas Oberritter obi at saftware.de
Tue May 28 10:47:12 PDT 2013


Fixes 'undefined reference to cogl_error_free' when using g++.

Signed-off-by: Andreas Oberritter <obi at saftware.de>
---
 cogl/cogl-error.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cogl/cogl-error.h b/cogl/cogl-error.h
index d04d872..6963c3d 100644
--- a/cogl/cogl-error.h
+++ b/cogl/cogl-error.h
@@ -30,6 +30,8 @@
 
 #include "cogl-types.h"
 
+COGL_BEGIN_DECLS
+
 /**
  * SECTION:cogl-error
  * @short_description: A way for Cogl to throw exceptions
@@ -169,4 +171,6 @@ cogl_error_matches (CoglError *error,
 #define COGL_GLIB_ERROR(COGL_ERROR) ((CoglError *)COGL_ERROR)
 #endif
 
+COGL_END_DECLS
+
 #endif /* __COGL_ERROR_H__ */
-- 
1.8.1.2



More information about the Cogl mailing list