diff options
Diffstat (limited to 'include/AL/al.h')
-rw-r--r-- | include/AL/al.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/AL/al.h b/include/AL/al.h index 44db7798..95d33988 100644 --- a/include/AL/al.h +++ b/include/AL/al.h @@ -5,17 +5,11 @@ extern "C" { #endif -#if defined(AL_LIBTYPE_STATIC) - #define AL_API -#elif defined(_WIN32) && !defined(_XBOX) - #if defined(AL_BUILD_LIBRARY) - #define AL_API __declspec(dllexport) - #else +#ifndef AL_API + #if defined(AL_LIBTYPE_STATIC) + #define AL_API + #elif defined(_WIN32) #define AL_API __declspec(dllimport) - #endif -#else - #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY) - #define AL_API __attribute__((visibility("protected"))) #else #define AL_API extern #endif |