diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-11-28 22:55:58 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-11-28 23:19:35 +0000 |
commit | c2729e4ea8154ea2f8c9520104ccbe242c6fa361 (patch) | |
tree | 9920d4cda0800aeb81ced71601abfd62bc59f8ea /cogl/cogl-renderer.c | |
parent | 40b14c60846e4e898d6e6e4e4b6dcb19e477c248 (diff) |
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 <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-renderer.c')
-rw-r--r-- | cogl/cogl-renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c index b1a3e8af..a691bdaf 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 |