aboutsummaryrefslogtreecommitdiffstats
path: root/include/AL/al.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-28 16:19:11 -0800
committerChris Robinson <[email protected]>2010-11-28 16:19:11 -0800
commit3e702ae2bca0e4536f55aaffaa61674da0108025 (patch)
tree86946fb8a99d9474d042b24b7e505dac16cba024 /include/AL/al.h
parent490d1c6a8ec45bb6cfd80f92155ae6ae93098785 (diff)
Improve static builds with MinGW
Diffstat (limited to 'include/AL/al.h')
-rw-r--r--include/AL/al.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/AL/al.h b/include/AL/al.h
index c409701f..44db7798 100644
--- a/include/AL/al.h
+++ b/include/AL/al.h
@@ -5,7 +5,9 @@
extern "C" {
#endif
-#if defined(_WIN32) && !defined(_XBOX)
+#if defined(AL_LIBTYPE_STATIC)
+ #define AL_API
+#elif defined(_WIN32) && !defined(_XBOX)
#if defined(AL_BUILD_LIBRARY)
#define AL_API __declspec(dllexport)
#else