From c2729e4ea8154ea2f8c9520104ccbe242c6fa361 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 28 Nov 2011 22:55:58 +0000 Subject: [PATCH] build: don't inc egl headers for non EGL builds For example when building on windows we don't want to require EGL headers when compiling cogl-renderer.c or cogl-texture-2d.c so we make sure not to include cogl-winsys-egl-private.h if we aren't supporting EGL. Reviewed-by: Neil Roberts --- cogl/cogl-renderer.c | 2 ++ cogl/cogl-texture-2d.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c index b1a3e8afc..a691bdaff 100644 --- a/cogl/cogl-renderer.c +++ b/cogl/cogl-renderer.c @@ -43,7 +43,9 @@ #include "cogl-display-private.h" #include "cogl-winsys-private.h" #include "cogl-winsys-stub-private.h" +#ifdef COGL_HAS_EGL_SUPPORT #include "cogl-winsys-egl-private.h" +#endif #include "cogl-config-private.h" #if COGL_HAS_XLIB_SUPPORT diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index d83570dc2..84c500db4 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -39,7 +39,9 @@ #include "cogl-journal-private.h" #include "cogl-pipeline-opengl-private.h" #include "cogl-framebuffer-private.h" +#ifdef COGL_HAS_EGL_SUPPORT #include "cogl-winsys-egl-private.h" +#endif #include #include