[cogl] build: don't inc egl headers for non EGL builds
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] build: don't inc egl headers for non EGL builds
- Date: Mon, 28 Nov 2011 23:21:21 +0000 (UTC)
commit c2729e4ea8154ea2f8c9520104ccbe242c6fa361
Author: Robert Bragg <robert linux intel com>
Date: Mon Nov 28 22:55:58 2011 +0000
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>
cogl/cogl-renderer.c | 2 ++
cogl/cogl-texture-2d.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index b1a3e8a..a691bda 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 d83570d..84c500d 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 <string.h>
#include <math.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]