egl: updated EGLAPI for Windows
authorJonathan White <jwhite@tungstengraphics.com>
Fri, 6 Jun 2008 21:13:59 +0000 (15:13 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 21:13:59 +0000 (15:13 -0600)
include/EGL/eglplatform.h

index 2759a53..6a67a3d 100644 (file)
@@ -30,9 +30,6 @@
 #ifndef EGLAPIENTRYP
 #define EGLAPIENTRYP EGLAPIENTRY *
 #endif
-#ifndef EGLAPI
-#define EGLAPI extern
-#endif
 
 /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
  * are aliases of window-system-dependent types, such as X Display * or
@@ -53,6 +50,9 @@
 #if (defined(WIN32) || defined(_WIN32_WCE))
 
 /** BEGIN Added for Windows **/
+#ifndef EGLAPI
+#define EGLAPI __declspec(dllexport)
+#endif
 typedef long   int32_t;
 typedef HDC            NativeDisplayType;
 typedef HWND   NativeWindowType;
@@ -62,6 +62,10 @@ typedef HBITMAP NativePixmapType;
 #elif defined(__gnu_linux__)
 
 /** BEGIN Added for X (Mesa) **/
+#ifndef EGLAPI
+#define EGLAPI extern
+#endif
+
 #include <X11/Xlib.h>
 typedef Display *NativeDisplayType;
 typedef Window NativeWindowType;