[cogl] Guard cogl-object.h within COGL_BEGIN_DECLS



commit b194f1bf58055ef1f5075508f19336cae648a0c8
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Fri Feb 22 16:27:58 2013 +0100

    Guard cogl-object.h within COGL_BEGIN_DECLS
    
    To avoid linking trouble in C++ stuff
    
    Reviewed-By: Neil Roberts <neil linux intel com>

 cogl/cogl-object.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h
index da80bf4..b141019 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -25,6 +25,10 @@
 #ifndef __COGL_OBJECT_H
 #define __COGL_OBJECT_H
 
+#include <cogl/cogl-types.h>
+
+COGL_BEGIN_DECLS
+
 typedef struct _CoglObject      CoglObject;
 
 #define COGL_OBJECT(X)          ((CoglObject *)X)
@@ -205,5 +209,7 @@ cogl_debug_object_foreach_type (CoglDebugObjectForeachTypeCallback func,
 void
 cogl_debug_object_print_instances (void);
 
+COGL_END_DECLS
+
 #endif /* __COGL_OBJECT_H */
 


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