mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Decouple MA_API and MA_STATIC defines.
This commit is contained in:
+12
-2
@@ -3930,7 +3930,7 @@ typedef ma_uint16 wchar_t;
|
||||
#define MA_NO_INLINE
|
||||
#endif
|
||||
|
||||
#if !defined(MA_API)
|
||||
/* MA_DLL is not officially supported. You're on your own if you want to use this. */
|
||||
#if defined(MA_DLL)
|
||||
#if defined(_WIN32)
|
||||
#define MA_DLL_IMPORT __declspec(dllimport)
|
||||
@@ -3947,19 +3947,29 @@ typedef ma_uint16 wchar_t;
|
||||
#define MA_DLL_PRIVATE static
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(MA_API)
|
||||
#if defined(MA_DLL)
|
||||
#if defined(MINIAUDIO_IMPLEMENTATION) || defined(MA_IMPLEMENTATION)
|
||||
#define MA_API MA_DLL_EXPORT
|
||||
#else
|
||||
#define MA_API MA_DLL_IMPORT
|
||||
#endif
|
||||
#define MA_PRIVATE MA_DLL_PRIVATE
|
||||
#else
|
||||
#define MA_API extern
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(MA_STATIC)
|
||||
#if defined(MA_DLL)
|
||||
#define MA_PRIVATE MA_DLL_PRIVATE
|
||||
#else
|
||||
#define MA_PRIVATE static
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* SIMD alignment in bytes. Currently set to 32 bytes in preparation for future AVX optimizations. */
|
||||
#define MA_SIMD_ALIGNMENT 32
|
||||
|
||||
|
||||
Reference in New Issue
Block a user