Index: ppapi/lib/gl/include/KHR/khrplatform.h |
diff --git a/ppapi/lib/gl/include/KHR/khrplatform.h b/ppapi/lib/gl/include/KHR/khrplatform.h |
index acf43bc5cee1a360d1b426c11f4e8c27a73184d7..1eb0b483af7d2193a3624df7196cc5061b9c3512 100644 |
--- a/ppapi/lib/gl/include/KHR/khrplatform.h |
+++ b/ppapi/lib/gl/include/KHR/khrplatform.h |
@@ -26,7 +26,7 @@ |
/* Khronos platform-specific types and definitions. |
* |
- * $Revision: 9356 $ on $Date: 2009-10-21 02:52:25 -0700 (Wed, 21 Oct 2009) $ |
+ * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $ |
* |
* Adopters may modify this file to suit their platform. Adopters are |
* encouraged to submit platform specific modifications to the Khronos |
@@ -231,10 +231,23 @@ 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; |
+ |
+/* |
+ * Types that differ between LLP64 and LP64 architectures - in LLP64, |
+ * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears |
+ * to be the only LLP64 architecture in current use. |
+ */ |
+#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 |
#if KHRONOS_SUPPORT_FLOAT |
/* |