|
|
@@ -83,6 +83,31 @@
|
|
|
#include <GL/gl.h>
|
|
|
#endif
|
|
|
|
|
|
+// panda_glext.h relies on these being defined.
|
|
|
+#ifndef __khrplatform_h_
|
|
|
+#include <stdint.h>
|
|
|
+typedef signed char khronos_int8_t;
|
|
|
+typedef unsigned char khronos_uint8_t;
|
|
|
+typedef signed short int khronos_int16_t;
|
|
|
+typedef unsigned short int khronos_uint16_t;
|
|
|
+typedef int32_t khronos_int32_t;
|
|
|
+typedef uint32_t khronos_uint32_t;
|
|
|
+typedef int64_t khronos_int64_t;
|
|
|
+typedef uint64_t khronos_uint64_t;
|
|
|
+
|
|
|
+#ifdef _WIN64
|
|
|
+typedef signed long long int khronos_intptr_t;
|
|
|
+typedef unsigned long long int khronos_uintptr_t;
|
|
|
+typedef signed long long int khronos_ssize_t;
|
|
|
+typedef unsigned long long int khronos_usize_t;
|
|
|
+#else
|
|
|
+typedef signed long int khronos_intptr_t;
|
|
|
+typedef unsigned long int khronos_uintptr_t;
|
|
|
+typedef signed long int khronos_ssize_t;
|
|
|
+typedef unsigned long int khronos_usize_t;
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
#undef __glext_h_
|
|
|
#undef GL_GLEXT_VERSION
|
|
|
#include "panda_glext.h"
|