summaryrefslogtreecommitdiffstats
path: root/externals/glad/include/KHR/khrplatform.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-22 01:18:16 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-22 01:52:00 +0200
commitf4c15db9e8641579b196a13e2a8f130490669c9c (patch)
tree94cf8f3358b2ddc7d9f478224ccf5c8a52373fc5 /externals/glad/include/KHR/khrplatform.h
parentrenderer_opengl/gl_shader_decompiler: Remove redundant name specification in format string (diff)
downloadyuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar.gz
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar.bz2
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar.lz
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar.xz
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.tar.zst
yuzu-f4c15db9e8641579b196a13e2a8f130490669c9c.zip
Diffstat (limited to '')
-rw-r--r--externals/glad/include/KHR/khrplatform.h12
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 @@
* 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