typedef void *EGLNativeWindowType;
typedef void *EGLNativePixmapType;
+#elif defined(__ANDROID__) || defined(ANDROID)
+
+#include <android/native_window.h>
+
+struct egl_native_pixmap_t;
+
+typedef struct ANativeWindow* EGLNativeWindowType;
+typedef struct egl_native_pixmap_t* EGLNativePixmapType;
+typedef void* EGLNativeDisplayType;
+
#elif defined(__unix__)
/* X11 (tentative) */
--- /dev/null
+diff --git a/thirdparty/khronos/EGL/eglplatform.h b/thirdparty/khronos/EGL/eglplatform.h
+index 6d34ab5..5f30ef1 100644
+--- a/thirdparty/khronos/EGL/eglplatform.h
++++ b/thirdparty/khronos/EGL/eglplatform.h
+@@ -83,6 +83,16 @@ typedef int EGLNativeDisplayType;
+ typedef void *EGLNativeWindowType;
+ typedef void *EGLNativePixmapType;
+
++#elif defined(__ANDROID__) || defined(ANDROID)
++
++#include <android/native_window.h>
++
++struct egl_native_pixmap_t;
++
++typedef struct ANativeWindow* EGLNativeWindowType;
++typedef struct egl_native_pixmap_t* EGLNativePixmapType;
++typedef void* EGLNativeDisplayType;
++
+ #elif defined(__unix__)
+
+ /* X11 (tentative) */
GL/glext.h: GL/glext.sed FORCE
wget -O - "http://www.opengl.org/registry/api/$(@F)" | sed -f $*.sed > $@
-EGL/egl.h EGL/eglext.h EGL/eglplatform.h KHR/khrplatform.h: FORCE
+EGL/egl.h EGL/eglext.h KHR/khrplatform.h: FORCE
wget -O $@ "http://www.khronos.org/registry/egl/api/$@"
+EGL/eglplatform.h: EGL/eglplatform.patch FORCE
+ wget -O $@ "http://www.khronos.org/registry/egl/api/$@"
+ patch $@ EGL/eglplatform.patch
+
GLES/gl.h GLES/glext.h GLES/glplatform.h: FORCE
wget -O $@ "http://www.khronos.org/registry/gles/api/1.1/$(@F)"