aboutsummaryrefslogtreecommitdiffstats
path: root/include/AL/alc.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-17 09:13:55 -0700
committerChris Robinson <[email protected]>2011-05-17 09:13:55 -0700
commit60965e3a6c0bcf719a3dc266beccda4c4f560a72 (patch)
tree60ce197d76fa1a36e780813975744c0a6dafaa40 /include/AL/alc.h
parentb5cb2d633c5df80128ce7fb08064c1f8df1dd731 (diff)
Determine the function export attribute using CMake
Diffstat (limited to 'include/AL/alc.h')
-rw-r--r--include/AL/alc.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/AL/alc.h b/include/AL/alc.h
index 00cb762d..4712055c 100644
--- a/include/AL/alc.h
+++ b/include/AL/alc.h
@@ -5,17 +5,11 @@
extern "C" {
#endif
-#if defined(AL_LIBTYPE_STATIC)
- #define ALC_API
-#elif defined(_WIN32) && !defined(_XBOX)
- #if defined(AL_BUILD_LIBRARY)
- #define ALC_API __declspec(dllexport)
- #else
+#ifndef ALC_API
+ #if defined(AL_LIBTYPE_STATIC)
+ #define ALC_API
+ #elif defined(_WIN32)
#define ALC_API __declspec(dllimport)
- #endif
-#else
- #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
- #define ALC_API __attribute__((visibility("protected")))
#else
#define ALC_API extern
#endif