1 #ifndef __khrplatform_h_
2 #define __khrplatform_h_
93 #if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
94 # define KHRONOS_STATIC 1
102 #if defined(KHRONOS_STATIC)
105 # define KHRONOS_APICALL
106 #elif defined(_WIN32)
107 # define KHRONOS_APICALL __declspec(dllimport)
108 #elif defined (__SYMBIAN32__)
109 # define KHRONOS_APICALL IMPORT_C
110 #elif defined(__ANDROID__)
111 # define KHRONOS_APICALL __attribute__((visibility("default")))
113 # define KHRONOS_APICALL
122 #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(KHRONOS_STATIC)
124 # define KHRONOS_APIENTRY __stdcall
126 # define KHRONOS_APIENTRY
134 #if defined (__ARMCC_2__)
135 #define KHRONOS_APIATTRIBUTES __softfp
137 #define KHRONOS_APIATTRIBUTES
143 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
154 #define KHRONOS_SUPPORT_INT64 1
155 #define KHRONOS_SUPPORT_FLOAT 1
157 #elif defined(__VMS ) || defined(__sgi)
167 #define KHRONOS_SUPPORT_INT64 1
168 #define KHRONOS_SUPPORT_FLOAT 1
170 #elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
179 #define KHRONOS_SUPPORT_INT64 1
180 #define KHRONOS_SUPPORT_FLOAT 1
182 #elif defined(__sun__) || defined(__digital__)
189 #if defined(__arch64__) || defined(_LP64)
196 #define KHRONOS_SUPPORT_INT64 1
197 #define KHRONOS_SUPPORT_FLOAT 1
206 #define KHRONOS_SUPPORT_INT64 0
207 #define KHRONOS_SUPPORT_FLOAT 0
219 #define KHRONOS_SUPPORT_INT64 1
220 #define KHRONOS_SUPPORT_FLOAT 1
250 #if KHRONOS_SUPPORT_FLOAT
257 #if KHRONOS_SUPPORT_INT64
274 #ifndef KHRONOS_MAX_ENUM
275 #define KHRONOS_MAX_ENUM 0x7FFFFFFF