Evas: Fix wayland-only compilation without Xlib headers

If the Xlib headers are not installed, a special macro must
be defined before including EGL headers.
This commit is contained in:
Jean-Philippe Andre 2015-07-23 16:24:29 +09:00
parent a8b4607968
commit f8dda3350c
3 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#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>

View File

@ -10,6 +10,10 @@
# 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>

View File

@ -12,6 +12,10 @@
# 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>