summaryrefslogtreecommitdiffstats
path: root/include/EGL/eglplatform.h
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2014-12-22 10:10:13 -0500
committerAlexander von Gluck IV <[email protected]>2014-12-23 09:07:57 -0500
commit400b833592d9aad7b2c4627a897380642d52189f (patch)
tree537b8c751497e81f3eb70b2c01ebc2ade3a40ae2 /include/EGL/eglplatform.h
parentda4fb3e7a11765725a4aaee41de6c79b40637209 (diff)
egl: Add Haiku code and support
* This is the cleaned up work of the Haiku GCI student Adrián Arroyo Calle [email protected] * Several patches were consolidated to prevent unnecessary touching of non-related code
Diffstat (limited to 'include/EGL/eglplatform.h')
-rw-r--r--include/EGL/eglplatform.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 21b18fe7381..2eb6865905c 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -106,7 +106,7 @@ typedef void *EGLNativeDisplayType;
#elif defined(__unix__)
-#ifdef MESA_EGL_NO_X11_HEADERS
+#if defined(MESA_EGL_NO_X11_HEADERS)
typedef void *EGLNativeDisplayType;
typedef khronos_uintptr_t EGLNativePixmapType;
@@ -124,8 +124,16 @@ typedef Window EGLNativeWindowType;
#endif /* MESA_EGL_NO_X11_HEADERS */
+#elif __HAIKU__
+#include <kernel/image.h>
+typedef void *EGLNativeDisplayType;
+typedef khronos_uintptr_t EGLNativePixmapType;
+typedef khronos_uintptr_t EGLNativeWindowType;
+
#else
+
#error "Platform not recognized"
+
#endif
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */