[cogl/wip/android: 7/12] misc: Add the single include guard to cogl-define.h



commit 5e4d0e189341b7d23a43306af63629114cdf9e93
Author: Damien Lespiau <damien lespiau intel com>
Date:   Fri May 13 08:11:57 2011 +0100

    misc: Add the single include guard to cogl-define.h
    
    This is a generated file and maybe the reason why it was not included
    the first time?

 cogl/cogl-defines.h.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-defines.h.in b/cogl/cogl-defines.h.in
index 0803463..5baa3b9 100644
--- a/cogl/cogl-defines.h.in
+++ b/cogl/cogl-defines.h.in
@@ -21,6 +21,10 @@
  *
  */
 
+#if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <cogl/cogl.h> can be included directly."
+#endif
+
 #ifndef __COGL_DEFINES_H__
 #define __COGL_DEFINES_H__
 



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