diff options
| author | 2019-11-01 00:04:53 -0400 | |
|---|---|---|
| committer | 2019-11-01 00:04:53 -0400 | |
| commit | 270fede4671ab9fabdb82545a23c81915c543155 (patch) | |
| tree | 757a6e5bbebd3ff93b07f3e516941a0ede95ea90 /frontends/gl/glad/include/KHR | |
| parent | 6830c84690b7d6526b1986ebc47ce15312fefdec (diff) | |
| download | cetris-270fede4671ab9fabdb82545a23c81915c543155.tar.gz cetris-270fede4671ab9fabdb82545a23c81915c543155.tar.bz2 cetris-270fede4671ab9fabdb82545a23c81915c543155.zip | |
start work on new opengl frontend
Diffstat (limited to 'frontends/gl/glad/include/KHR')
| -rw-r--r-- | frontends/gl/glad/include/KHR/khrplatform.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontends/gl/glad/include/KHR/khrplatform.h b/frontends/gl/glad/include/KHR/khrplatform.h index 975bbff..5b55ea2 100644 --- a/frontends/gl/glad/include/KHR/khrplatform.h +++ b/frontends/gl/glad/include/KHR/khrplatform.h @@ -90,12 +90,20 @@ * int arg2) KHRONOS_APIATTRIBUTES; */ +#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC) +# define KHRONOS_STATIC 1 +#endif + /*------------------------------------------------------------------------- * Definition of KHRONOS_APICALL *------------------------------------------------------------------------- * This precedes the return type of the function in the function prototype. */ -#if defined(_WIN32) && !defined(__SCITECH_SNAP__) +#if defined(KHRONOS_STATIC) + /* If the preprocessor constant KHRONOS_STATIC is defined, make the + * header compatible with static linking. */ +# define KHRONOS_APICALL +#elif defined(_WIN32) # define KHRONOS_APICALL __declspec(dllimport) #elif defined (__SYMBIAN32__) # define KHRONOS_APICALL IMPORT_C @@ -111,7 +119,7 @@ * This follows the return type of the function and precedes the function * name in the function prototype. */ -#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) +#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(KHRONOS_STATIC) /* Win32 but not WinCE */ # define KHRONOS_APIENTRY __stdcall #else |