]> git.cworth.org Git - apitrace/commitdiff
Allow to include EGL on MacOSX.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 30 Mar 2012 20:22:15 +0000 (21:22 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 30 Mar 2012 20:22:15 +0000 (21:22 +0100)
thirdparty/khronos/EGL/eglplatform.h
thirdparty/khronos/EGL/eglplatform.patch

index 5f30ef1c22ee7889edf4c2f9e25ca2908e3bd45b..b5995ec2387664ce272acbeb846014b882c2a96b 100644 (file)
@@ -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)  */
index 2758d7dd9718a6ced7223d2860c24c42c4d208c3..d35bca3a53797fc19aa5e848c3762ff60777694a 100644 (file)
@@ -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__)