summaryrefslogtreecommitdiff
path: root/include/EGL
diff options
context:
space:
mode:
authorJonathan White <jwhite@tungstengraphics.com>2008-06-05 15:07:03 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-05 15:07:03 -0600
commitfe1a2d1fffe69018e30158ee21ed9842384fd233 (patch)
treed8a401f3743411adfc14438f1f500fd65b4a737c /include/EGL
parentb11aad2abe167716b7ff1262f5872d4d9dbb5b9c (diff)
egl: assorted fixes for Windows
Note that int32_t is typedef'd both in p_compiler.h and eglplatform.h
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglplatform.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 3d71910e5f9..2759a537a0d 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -6,8 +6,10 @@
#define __eglplatform_h_
/* Windows calling convention boilerplate */
-#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
-#define WIN32_LEAN_AND_MEAN 1
+#if (defined(WIN32) || defined(_WIN32_WCE))
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#endif
#include <windows.h>
#endif
@@ -47,6 +49,18 @@
etc.
*/
+
+#if (defined(WIN32) || defined(_WIN32_WCE))
+
+/** BEGIN Added for Windows **/
+typedef long int32_t;
+typedef HDC NativeDisplayType;
+typedef HWND NativeWindowType;
+typedef HBITMAP NativePixmapType;
+/** END Added for Windows **/
+
+#elif defined(__gnu_linux__)
+
/** BEGIN Added for X (Mesa) **/
#include <X11/Xlib.h>
typedef Display *NativeDisplayType;
@@ -54,6 +68,8 @@ typedef Window NativeWindowType;
typedef Pixmap NativePixmapType;
/** END Added for X (Mesa) **/
+#endif
+
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
typedef NativeDisplayType EGLNativeDisplayType;
typedef NativePixmapType EGLNativePixmapType;