From 8f735f21b33380fb9e082b0b43e7d51d71b388ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 30 Mar 2012 21:22:15 +0100 Subject: [PATCH] Allow to include EGL on MacOSX. --- thirdparty/khronos/EGL/eglplatform.h | 6 ++++++ thirdparty/khronos/EGL/eglplatform.patch | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/thirdparty/khronos/EGL/eglplatform.h b/thirdparty/khronos/EGL/eglplatform.h index 5f30ef1..b5995ec 100644 --- a/thirdparty/khronos/EGL/eglplatform.h +++ b/thirdparty/khronos/EGL/eglplatform.h @@ -93,6 +93,12 @@ typedef struct ANativeWindow* EGLNativeWindowType; typedef struct egl_native_pixmap_t* EGLNativePixmapType; typedef void* EGLNativeDisplayType; +#elif defined(__APPLE__) + +typedef void *EGLNativeDisplayType; +typedef void *EGLNativePixmapType; +typedef void *EGLNativeWindowType; + #elif defined(__unix__) /* X11 (tentative) */ diff --git a/thirdparty/khronos/EGL/eglplatform.patch b/thirdparty/khronos/EGL/eglplatform.patch index 2758d7d..d35bca3 100644 --- a/thirdparty/khronos/EGL/eglplatform.patch +++ b/thirdparty/khronos/EGL/eglplatform.patch @@ -2,7 +2,7 @@ diff --git a/thirdparty/khronos/EGL/eglplatform.h b/thirdparty/khronos/EGL/eglpl index 6d34ab5..5f30ef1 100644 --- a/thirdparty/khronos/EGL/eglplatform.h +++ b/thirdparty/khronos/EGL/eglplatform.h -@@ -83,6 +83,16 @@ typedef int EGLNativeDisplayType; +@@ -83,6 +83,22 @@ typedef int EGLNativeDisplayType; typedef void *EGLNativeWindowType; typedef void *EGLNativePixmapType; @@ -15,6 +15,12 @@ index 6d34ab5..5f30ef1 100644 +typedef struct ANativeWindow* EGLNativeWindowType; +typedef struct egl_native_pixmap_t* EGLNativePixmapType; +typedef void* EGLNativeDisplayType; ++ ++#elif defined(__APPLE__) ++ ++typedef void *EGLNativeDisplayType; ++typedef void *EGLNativePixmapType; ++typedef void *EGLNativeWindowType; + #elif defined(__unix__) -- 2.43.0