diff options
Diffstat (limited to 'externals/glad/include/KHR/khrplatform.h')
| -rw-r--r-- | externals/glad/include/KHR/khrplatform.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/externals/glad/include/KHR/khrplatform.h b/externals/glad/include/KHR/khrplatform.h index 975bbffed..5b55ea2b9 100644 --- a/externals/glad/include/KHR/khrplatform.h +++ b/externals/glad/include/KHR/khrplatform.h | |||
| @@ -90,12 +90,20 @@ | |||
| 90 | * int arg2) KHRONOS_APIATTRIBUTES; | 90 | * int arg2) KHRONOS_APIATTRIBUTES; |
| 91 | */ | 91 | */ |
| 92 | 92 | ||
| 93 | #if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC) | ||
| 94 | # define KHRONOS_STATIC 1 | ||
| 95 | #endif | ||
| 96 | |||
| 93 | /*------------------------------------------------------------------------- | 97 | /*------------------------------------------------------------------------- |
| 94 | * Definition of KHRONOS_APICALL | 98 | * Definition of KHRONOS_APICALL |
| 95 | *------------------------------------------------------------------------- | 99 | *------------------------------------------------------------------------- |
| 96 | * This precedes the return type of the function in the function prototype. | 100 | * This precedes the return type of the function in the function prototype. |
| 97 | */ | 101 | */ |
| 98 | #if defined(_WIN32) && !defined(__SCITECH_SNAP__) | 102 | #if defined(KHRONOS_STATIC) |
| 103 | /* If the preprocessor constant KHRONOS_STATIC is defined, make the | ||
| 104 | * header compatible with static linking. */ | ||
| 105 | # define KHRONOS_APICALL | ||
| 106 | #elif defined(_WIN32) | ||
| 99 | # define KHRONOS_APICALL __declspec(dllimport) | 107 | # define KHRONOS_APICALL __declspec(dllimport) |
| 100 | #elif defined (__SYMBIAN32__) | 108 | #elif defined (__SYMBIAN32__) |
| 101 | # define KHRONOS_APICALL IMPORT_C | 109 | # define KHRONOS_APICALL IMPORT_C |
| @@ -111,7 +119,7 @@ | |||
| 111 | * This follows the return type of the function and precedes the function | 119 | * This follows the return type of the function and precedes the function |
| 112 | * name in the function prototype. | 120 | * name in the function prototype. |
| 113 | */ | 121 | */ |
| 114 | #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) | 122 | #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(KHRONOS_STATIC) |
| 115 | /* Win32 but not WinCE */ | 123 | /* Win32 but not WinCE */ |
| 116 | # define KHRONOS_APIENTRY __stdcall | 124 | # define KHRONOS_APIENTRY __stdcall |
| 117 | #else | 125 | #else |