summaryrefslogtreecommitdiff
path: root/include/KHR
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-05-31 11:03:48 +0800
committerChia-I Wu <olv@lunarg.com>2010-05-31 11:31:07 +0800
commit14f1157a2e52f14149cee7cf87cf3b32c6e439fb (patch)
tree729249e4f40db8d441caf26862ce201bf5f0e014 /include/KHR
parentd2cb99904578b263396752975d60c8d7e2eac14b (diff)
Update KHRONOS_APICALL for _WIN32 platform.
Use __declspec(dllexport) when KHRONOS_DLL_EXPORTS is defined.
Diffstat (limited to 'include/KHR')
-rw-r--r--include/KHR/khrplatform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/KHR/khrplatform.h b/include/KHR/khrplatform.h
index a4b88ebc3d..447953940e 100644
--- a/include/KHR/khrplatform.h
+++ b/include/KHR/khrplatform.h
@@ -98,7 +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)
+# if defined(KHRONOS_DLL_EXPORTS)
+# define KHRONOS_APICALL __declspec(dllexport)
+# else
+# define KHRONOS_APICALL __declspec(dllimport)
+# endif
#elif defined (__SYMBIAN32__)
# define KHRONOS_APICALL IMPORT_C
#elif (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303) \