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



commit bb1f787e6ae70eb5a0ff870049a27195f38baacc
Author: Andreas Oberritter <obi saftware de>
Date:   Tue May 28 19:47:12 2013 +0200

    cogl-error.h: add COGL_BEGIN_DECLS/COGL_END_DECLS
    
    Fixes 'undefined reference to cogl_error_free' when using g++.
    
    Signed-off-by: Andreas Oberritter <obi saftware de>
    
    Reviewed-by: Neil Roberts <neil linux intel com>
    
    (cherry picked from commit 41c54fcaba5b4bf76a0e943bac6bca777f3dae2f)

 cogl/cogl-error.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-error.h b/cogl/cogl-error.h
index 1b6a951..ef6ee7e 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
@@ -173,4 +175,6 @@ cogl_error_matches (CoglError *error,
 #define COGL_GLIB_ERROR(COGL_ERROR) ((CoglError *)COGL_ERROR)
 #endif
 
+COGL_END_DECLS
+
 #endif /* __COGL_ERROR_H__ */


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