]> git.cworth.org Git - apitrace/blob - thirdparty/khronos/EGL/eglplatform.patch
Allow to include EGL on MacOSX.
[apitrace] / thirdparty / khronos / EGL / eglplatform.patch
1 diff --git a/thirdparty/khronos/EGL/eglplatform.h b/thirdparty/khronos/EGL/eglplatform.h
2 index 6d34ab5..5f30ef1 100644
3 --- a/thirdparty/khronos/EGL/eglplatform.h
4 +++ b/thirdparty/khronos/EGL/eglplatform.h
5 @@ -83,6 +83,22 @@ typedef int   EGLNativeDisplayType;
6  typedef void *EGLNativeWindowType;
7  typedef void *EGLNativePixmapType;
8  
9 +#elif defined(__ANDROID__) || defined(ANDROID)
10 +
11 +#include <android/native_window.h>
12 +
13 +struct egl_native_pixmap_t;
14 +
15 +typedef struct ANativeWindow*           EGLNativeWindowType;
16 +typedef struct egl_native_pixmap_t*     EGLNativePixmapType;
17 +typedef void*                           EGLNativeDisplayType;
18 +
19 +#elif defined(__APPLE__)
20 +
21 +typedef void *EGLNativeDisplayType;
22 +typedef void *EGLNativePixmapType;
23 +typedef void *EGLNativeWindowType;
24 +
25  #elif defined(__unix__)
26  
27  /* X11 (tentative)  */