summaryrefslogtreecommitdiffstats
path: root/chromium/ppapi/lib/gl/include/KHR/khrplatform.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ppapi/lib/gl/include/KHR/khrplatform.h')
-rw-r--r--chromium/ppapi/lib/gl/include/KHR/khrplatform.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/chromium/ppapi/lib/gl/include/KHR/khrplatform.h b/chromium/ppapi/lib/gl/include/KHR/khrplatform.h
index acf43bc5cee..1eb0b483af7 100644
--- a/chromium/ppapi/lib/gl/include/KHR/khrplatform.h
+++ b/chromium/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
/*