Index: mojo/public/c/gpu/KHR/khrplatform.h |
diff --git a/third_party/khronos/KHR/khrplatform.h b/mojo/public/c/gpu/KHR/khrplatform.h |
similarity index 74% |
copy from third_party/khronos/KHR/khrplatform.h |
copy to mojo/public/c/gpu/KHR/khrplatform.h |
index ee062deebe1f6d1723c24a9aea9d0c67b2a948ae..2e6b8241ada051efd694eaa0729abeafdc60addc 100644 |
--- a/third_party/khronos/KHR/khrplatform.h |
+++ b/mojo/public/c/gpu/KHR/khrplatform.h |
@@ -98,11 +98,11 @@ |
* This precedes the return type of the function in the function prototype. |
*/ |
#if defined(_WIN32) && !defined(__SCITECH_SNAP__) |
-# define KHRONOS_APICALL __declspec(dllimport) |
-#elif defined (__SYMBIAN32__) |
-# define KHRONOS_APICALL IMPORT_C |
+#define KHRONOS_APICALL __declspec(dllimport) |
viettrungluu
2015/08/12 02:48:10
I don't think you wanted to format this file....
|
+#elif defined(__SYMBIAN32__) |
+#define KHRONOS_APICALL IMPORT_C |
#else |
-# define KHRONOS_APICALL |
+#define KHRONOS_APICALL |
#endif |
/*------------------------------------------------------------------------- |
@@ -112,10 +112,10 @@ |
* name in the function prototype. |
*/ |
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) |
- /* Win32 but not WinCE */ |
-# define KHRONOS_APIENTRY __stdcall |
+/* Win32 but not WinCE */ |
+#define KHRONOS_APIENTRY __stdcall |
#else |
-# define KHRONOS_APIENTRY |
+#define KHRONOS_APIENTRY |
#endif |
/*------------------------------------------------------------------------- |
@@ -139,7 +139,7 @@ |
*------------------------------------------------------------------------- |
* This follows the closing parenthesis of the function prototype arguments. |
*/ |
-#if defined (__ARMCC_2__) |
+#if defined(__ARMCC_2__) |
#define KHRONOS_APIATTRIBUTES __softfp |
#else |
#define KHRONOS_APIATTRIBUTES |
@@ -148,71 +148,71 @@ |
/*------------------------------------------------------------------------- |
* basic type definitions |
*-----------------------------------------------------------------------*/ |
-#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) |
- |
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ |
+ defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) |
/* |
* Using <stdint.h> |
*/ |
#include <stdint.h> |
-typedef int32_t khronos_int32_t; |
-typedef uint32_t khronos_uint32_t; |
-typedef int64_t khronos_int64_t; |
-typedef uint64_t khronos_uint64_t; |
-#define KHRONOS_SUPPORT_INT64 1 |
-#define KHRONOS_SUPPORT_FLOAT 1 |
+typedef int32_t khronos_int32_t; |
+typedef uint32_t khronos_uint32_t; |
+typedef int64_t khronos_int64_t; |
+typedef uint64_t khronos_uint64_t; |
+#define KHRONOS_SUPPORT_INT64 1 |
+#define KHRONOS_SUPPORT_FLOAT 1 |
-#elif defined(__VMS ) || defined(__sgi) |
+#elif defined(__VMS) || defined(__sgi) |
/* |
* Using <inttypes.h> |
*/ |
#include <inttypes.h> |
-typedef int32_t khronos_int32_t; |
-typedef uint32_t khronos_uint32_t; |
-typedef int64_t khronos_int64_t; |
-typedef uint64_t khronos_uint64_t; |
-#define KHRONOS_SUPPORT_INT64 1 |
-#define KHRONOS_SUPPORT_FLOAT 1 |
+typedef int32_t khronos_int32_t; |
+typedef uint32_t khronos_uint32_t; |
+typedef int64_t khronos_int64_t; |
+typedef uint64_t khronos_uint64_t; |
+#define KHRONOS_SUPPORT_INT64 1 |
+#define KHRONOS_SUPPORT_FLOAT 1 |
#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) |
/* |
* Win32 |
*/ |
-typedef __int32 khronos_int32_t; |
-typedef unsigned __int32 khronos_uint32_t; |
-typedef __int64 khronos_int64_t; |
-typedef unsigned __int64 khronos_uint64_t; |
-#define KHRONOS_SUPPORT_INT64 1 |
-#define KHRONOS_SUPPORT_FLOAT 1 |
+typedef __int32 khronos_int32_t; |
+typedef unsigned __int32 khronos_uint32_t; |
+typedef __int64 khronos_int64_t; |
+typedef unsigned __int64 khronos_uint64_t; |
+#define KHRONOS_SUPPORT_INT64 1 |
+#define KHRONOS_SUPPORT_FLOAT 1 |
#elif defined(__sun__) || defined(__digital__) |
/* |
* Sun or Digital |
*/ |
-typedef int khronos_int32_t; |
-typedef unsigned int khronos_uint32_t; |
+typedef int khronos_int32_t; |
+typedef unsigned int khronos_uint32_t; |
#if defined(__arch64__) || defined(_LP64) |
-typedef long int khronos_int64_t; |
-typedef unsigned long int khronos_uint64_t; |
+typedef long int khronos_int64_t; |
+typedef unsigned long int khronos_uint64_t; |
#else |
-typedef long long int khronos_int64_t; |
-typedef unsigned long long int khronos_uint64_t; |
+typedef long long int khronos_int64_t; |
+typedef unsigned long long int khronos_uint64_t; |
#endif /* __arch64__ */ |
-#define KHRONOS_SUPPORT_INT64 1 |
-#define KHRONOS_SUPPORT_FLOAT 1 |
+#define KHRONOS_SUPPORT_INT64 1 |
+#define KHRONOS_SUPPORT_FLOAT 1 |
#elif 0 |
/* |
* Hypothetical platform with no float or int64 support |
*/ |
-typedef int khronos_int32_t; |
-typedef unsigned int khronos_uint32_t; |
-#define KHRONOS_SUPPORT_INT64 0 |
-#define KHRONOS_SUPPORT_FLOAT 0 |
+typedef int khronos_int32_t; |
+typedef unsigned int khronos_uint32_t; |
+#define KHRONOS_SUPPORT_INT64 0 |
+#define KHRONOS_SUPPORT_FLOAT 0 |
#else |
@@ -220,46 +220,45 @@ typedef unsigned int khronos_uint32_t; |
* Generic fallback |
*/ |
#include <stdint.h> |
-typedef int32_t khronos_int32_t; |
-typedef uint32_t khronos_uint32_t; |
-typedef int64_t khronos_int64_t; |
-typedef uint64_t khronos_uint64_t; |
-#define KHRONOS_SUPPORT_INT64 1 |
-#define KHRONOS_SUPPORT_FLOAT 1 |
+typedef int32_t khronos_int32_t; |
+typedef uint32_t khronos_uint32_t; |
+typedef int64_t khronos_int64_t; |
+typedef uint64_t khronos_uint64_t; |
+#define KHRONOS_SUPPORT_INT64 1 |
+#define KHRONOS_SUPPORT_FLOAT 1 |
#endif |
- |
/* |
* Types that are (so far) the same on all platforms |
*/ |
-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 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, |
+ * 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 signed long long int khronos_intptr_t; |
typedef unsigned long long int khronos_uintptr_t; |
-typedef signed long long int khronos_ssize_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; |
+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 |
/* |
* Float type |
*/ |
-typedef float khronos_float_t; |
+typedef float khronos_float_t; |
#endif |
#if KHRONOS_SUPPORT_INT64 |
@@ -272,8 +271,8 @@ typedef float khronos_float_t; |
* 64 bit value that wraps back to 0 every 584 years. Time intervals |
* may be either signed or unsigned. |
*/ |
-typedef khronos_uint64_t khronos_utime_nanoseconds_t; |
-typedef khronos_int64_t khronos_stime_nanoseconds_t; |
+typedef khronos_uint64_t khronos_utime_nanoseconds_t; |
+typedef khronos_int64_t khronos_stime_nanoseconds_t; |
#endif |
/* |
@@ -290,9 +289,9 @@ typedef khronos_int64_t khronos_stime_nanoseconds_t; |
* comparisons should not be made against KHRONOS_TRUE. |
*/ |
typedef enum { |
- KHRONOS_FALSE = 0, |
- KHRONOS_TRUE = 1, |
- KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM |
+ KHRONOS_FALSE = 0, |
+ KHRONOS_TRUE = 1, |
+ KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM |
} khronos_boolean_enum_t; |
#endif /* __khrplatform_h_ */ |