gl drm/x11: Fix compilation for EGL < 1.5

This is an attempt at fixing compilation for systems with old
EGL headers (version < 1.5).

Thanks Roy for the report!
This commit is contained in:
Jean-Philippe Andre 2016-12-02 14:24:57 +09:00
parent 9c82b3475f
commit 182418dc1c
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,10 @@
#define EVAS_GL_UPDATE_TILE_SIZE 16
#ifndef EGL_VERSION_1_5
typedef intptr_t EGLAttrib;
#endif
/* external variables */
int _evas_engine_gl_drm_log_dom = -1;
int _extn_have_buffer_age = 1;

View File

@ -155,6 +155,10 @@ _visuals_hash_index_get_from_info(Evas_Engine_Info_GL_X11 *info)
# define EGL_PLATFORM_X11_KHR 0x31D5
#endif
#ifndef EGL_VERSION_1_5
typedef intptr_t EGLAttrib;
#endif
static EGLDisplay *
_x11_eglGetDisplay(Display *x11_display)
{