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:
parent
a8b4607968
commit
f8dda3350c
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue