diff options
Diffstat (limited to 'make/stub_includes/egl/EGL/eglplatform.h')
-rwxr-xr-x | make/stub_includes/egl/EGL/eglplatform.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/make/stub_includes/egl/EGL/eglplatform.h b/make/stub_includes/egl/EGL/eglplatform.h index 4a32edeef..69893006e 100755 --- a/make/stub_includes/egl/EGL/eglplatform.h +++ b/make/stub_includes/egl/EGL/eglplatform.h @@ -21,16 +21,21 @@ ** replaced with corresponding types of the native window system in egl.h. ** ** EGL and native handle values must match their types. -** -** This version of eglplatform.h is used to generate the glue code for the Java-side -** EGL class, and is intended to be platform-independent. -** */ #ifdef __cplusplus extern "C" { #endif +#if defined(_WIN32) + typedef signed __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#else + #include <stdint.h> +#endif + // Define storage class specifiers #ifndef APIENTRY #define APIENTRY @@ -50,6 +55,15 @@ typedef int EGLNativeDisplayType; typedef void* EGLNativeWindowType; typedef void* EGLNativePixmapType; +// Define 64-bit integer extensions +typedef int64_t EGLint64NV; +typedef uint64_t EGLuint64NV; + +// Define the pre-EGL 1.3 Native handle types for backwards compatibility +typedef EGLNativeDisplayType NativeDisplayType; +typedef EGLNativePixmapType NativePixmapType; +typedef EGLNativeWindowType NativeWindowType; + #ifdef __cplusplus } #endif |