mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 23:45:26 +00:00
Do not use exports attributes when build libsoundio as a static library
This commit is contained in:
parent
406ffa668c
commit
2e7994b0b3
|
@ -18,14 +18,18 @@
|
||||||
#define SOUNDIO_EXTERN_C
|
#define SOUNDIO_EXTERN_C
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(SOUNDIO_STATIC_LIBRARY)
|
||||||
#if defined(SOUNDIO_BUILDING_LIBRARY)
|
# define SOUNDIO_EXPORT
|
||||||
#define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllexport)
|
|
||||||
#else
|
#else
|
||||||
#define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllimport)
|
# if defined(_WIN32)
|
||||||
#endif
|
# if defined(SOUNDIO_BUILDING_LIBRARY)
|
||||||
#else
|
# define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllexport)
|
||||||
#define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __attribute__((visibility ("default")))
|
# else
|
||||||
|
# define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define SOUNDIO_EXPORT SOUNDIO_EXTERN_C __attribute__((visibility ("default")))
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
/// \endcond
|
/// \endcond
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue