Evas: Fix wayland-only compilation without Xlib headers
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 23 Jul 2015 07:24:29 +0000 (16:24 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 23 Jul 2015 07:24:29 +0000 (16:24 +0900)
If the Xlib headers are not installed, a special macro must
be defined before including EGL headers.

src/modules/evas/engines/gl_common/evas_gl_common.h
src/modules/evas/engines/gl_drm/evas_engine.h
src/modules/evas/engines/wayland_egl/evas_engine.h

index 6dc673f..d40833b 100644 (file)
 
 #define GL_GLEXT_PROTOTYPES
 
+#if !defined(HAVE_ECORE_X_XLIB) && !defined(MESA_EGL_NO_X11_HEADERS)
+# define MESA_EGL_NO_X11_HEADERS
+#endif
+
 #ifdef BUILD_ENGINE_GL_COCOA
 # include <OpenGL/gl.h>
 # include <OpenGL/glext.h>
index 9578a7b..e2bc8a6 100644 (file)
 # define EGL_EGLEXT_PROTOTYPES
 # define GL_GLEXT_PROTOTYPES
 
+# if !defined(HAVE_ECORE_X_XLIB) && !defined(MESA_EGL_NO_X11_HEADERS)
+#  define MESA_EGL_NO_X11_HEADERS
+# endif
+
 # include <EGL/egl.h>
 # include <EGL/eglext.h>
 # include <EGL/eglmesaext.h>
index 0d22968..9815a16 100644 (file)
 
 # define GL_GLEXT_PROTOTYPES
 
+# if !defined(HAVE_ECORE_X_XLIB) && !defined(MESA_EGL_NO_X11_HEADERS)
+#  define MESA_EGL_NO_X11_HEADERS
+# endif
+
 # include <EGL/egl.h>
 # include <GLES2/gl2.h>
 # include <GLES2/gl2ext.h>