summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <jwhite@tungstengraphics.com>2008-06-06 15:13:59 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-06 15:13:59 -0600
commitadaf0385e8e453bfdc1ab7d7059bfba5ce13a4c1 (patch)
tree55502dcb93c291a123ffcbcd7865d7b4b80d80f0
parent53076e8b5bce9ddf6eb524b8009db67eb5d3389b (diff)
egl: updated EGLAPI for Windows
-rw-r--r--include/EGL/eglplatform.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 2759a537a0..6a67a3d29f 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -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;