summaryrefslogtreecommitdiff
path: root/include/EGL
diff options
context:
space:
mode:
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglext.h4
-rw-r--r--include/EGL/eglplatform.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h
index a4698ccd16..b65f7f2bcc 100644
--- a/include/EGL/eglext.h
+++ b/include/EGL/eglext.h
@@ -136,8 +136,8 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGL
#define EGL_INTERLACED_MESA 0x4008
#define EGL_SCREEN_BIT_MESA 0x08
-typedef u_int32_t EGLScreenMESA;
-typedef u_int32_t EGLModeMESA;
+typedef uint32_t EGLScreenMESA;
+typedef uint32_t EGLModeMESA;
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI EGLBoolean EGLAPIENTRY eglChooseModeMESA(EGLDisplay dpy, EGLScreenMESA screen, const EGLint *attrib_list, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index d873428d75..83e89cd704 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -15,6 +15,7 @@
#if !defined(_WIN32_WCE)
#include <sys/types.h>
+#include <stdint.h>
#endif
/* Macros used in EGL function prototype declarations.
@@ -57,7 +58,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 +69,7 @@ typedef HWND NativeWindowType;
typedef HBITMAP NativePixmapType;
/** END Added for Windows **/
-#elif defined(__gnu_linux__) || defined(__FreeBSD__)
+#elif defined(__gnu_linux__) || defined(__FreeBSD__) || defined(__sun)
/** BEGIN Added for X (Mesa) **/
#ifndef EGLAPI