Do not use exports attributes when build libsoundio as a static library

This commit is contained in:
Raphaël Londeix 2015-12-07 03:20:42 +01:00
parent 406ffa668c
commit 2e7994b0b3

View file

@ -18,6 +18,9 @@
#define SOUNDIO_EXTERN_C #define SOUNDIO_EXTERN_C
#endif #endif
#if defined(SOUNDIO_STATIC_LIBRARY)
# define SOUNDIO_EXPORT
#else
# if defined(_WIN32) # if defined(_WIN32)
# if defined(SOUNDIO_BUILDING_LIBRARY) # if defined(SOUNDIO_BUILDING_LIBRARY)
# define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllexport) # define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllexport)
@ -27,6 +30,7 @@
# else # else
# define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __attribute__((visibility ("default"))) # define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __attribute__((visibility ("default")))
# endif # endif
#endif
/// \endcond /// \endcond
/** \mainpage /** \mainpage