Merge branch 'mesa_7_7_branch'
[mesa.git] / include / EGL / eglplatform.h
index 02c3b94bd8af284bf8a638f4329cc4ae9e0f4577..09abb5d844a360056a080492ad26af9d05a48eee 100644 (file)
 
 #if !defined(_WIN32_WCE)
 #include <sys/types.h>
+#include <stdint.h>
+#endif
+
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+#  define EGLAPI __attribute__((visibility("default")))
+#  define EGLAPIENTRY
 #endif
 
 /* Macros used in EGL function prototype declarations.
@@ -57,7 +63,7 @@
 #endif
 
 typedef long   int32_t;
-typedef unsigned long u_int32_t;
+typedef unsigned long uint32_t;
 typedef unsigned char uint8_t;
 #define snprintf _snprintf
 #define strcasecmp _stricmp
@@ -68,7 +74,8 @@ typedef HWND  NativeWindowType;
 typedef HBITMAP NativePixmapType;
 /** END Added for Windows **/
 
-#elif defined(__gnu_linux__)
+#elif defined(__gnu_linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__APPLE__)
+
 
 /** BEGIN Added for X (Mesa) **/
 #ifndef EGLAPI