diff options
Diffstat (limited to 'cogl/cogl-xlib.h')
-rw-r--r-- | cogl/cogl-xlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cogl/cogl-xlib.h b/cogl/cogl-xlib.h index 4e7e37f2..87d7fa4a 100644 --- a/cogl/cogl-xlib.h +++ b/cogl/cogl-xlib.h @@ -26,8 +26,16 @@ #include <X11/Xlib.h> +/* NB: this is a top-level header that can be included directly but we + * want to be careful not to define __COGL_H_INSIDE__ when this is + * included internally while building Cogl itself since + * __COGL_H_INSIDE__ is used in headers to guard public vs private api + * definitions + */ +#ifndef COGL_COMPILATION #define __COGL_XLIB_H_INSIDE__ #define __COGL_H_INSIDE__ +#endif #include <cogl/cogl-types.h> #include <cogl/cogl-clutter-xlib.h> |