From 3e702ae2bca0e4536f55aaffaa61674da0108025 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Nov 2010 16:19:11 -0800 Subject: Improve static builds with MinGW --- include/AL/al.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/AL/al.h') 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 -- cgit v1.2.3