summaryrefslogtreecommitdiff
path: root/cogl/winsys/cogl-texture-pixmap-x11.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/winsys/cogl-texture-pixmap-x11.h')
-rw-r--r--cogl/winsys/cogl-texture-pixmap-x11.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cogl/winsys/cogl-texture-pixmap-x11.h b/cogl/winsys/cogl-texture-pixmap-x11.h
index eaa743db..41129a6d 100644
--- a/cogl/winsys/cogl-texture-pixmap-x11.h
+++ b/cogl/winsys/cogl-texture-pixmap-x11.h
@@ -24,7 +24,15 @@
#ifndef __COGL_TEXTURE_PIXMAP_X11_H
#define __COGL_TEXTURE_PIXMAP_X11_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_H_INSIDE__
+#endif
#include <cogl/cogl-context.h>