Commit 18e4756b authored by David Reid's avatar David Reid

Decouple MA_API and MA_STATIC defines.

parent 8df02809
...@@ -3930,8 +3930,8 @@ typedef ma_uint16 wchar_t; ...@@ -3930,8 +3930,8 @@ typedef ma_uint16 wchar_t;
#define MA_NO_INLINE #define MA_NO_INLINE
#endif #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(MA_DLL)
#if defined(_WIN32) #if defined(_WIN32)
#define MA_DLL_IMPORT __declspec(dllimport) #define MA_DLL_IMPORT __declspec(dllimport)
#define MA_DLL_EXPORT __declspec(dllexport) #define MA_DLL_EXPORT __declspec(dllexport)
...@@ -3947,19 +3947,29 @@ typedef ma_uint16 wchar_t; ...@@ -3947,19 +3947,29 @@ typedef ma_uint16 wchar_t;
#define MA_DLL_PRIVATE static #define MA_DLL_PRIVATE static
#endif #endif
#endif #endif
#endif
#if !defined(MA_API)
#if defined(MA_DLL)
#if defined(MINIAUDIO_IMPLEMENTATION) || defined(MA_IMPLEMENTATION) #if defined(MINIAUDIO_IMPLEMENTATION) || defined(MA_IMPLEMENTATION)
#define MA_API MA_DLL_EXPORT #define MA_API MA_DLL_EXPORT
#else #else
#define MA_API MA_DLL_IMPORT #define MA_API MA_DLL_IMPORT
#endif #endif
#define MA_PRIVATE MA_DLL_PRIVATE
#else #else
#define MA_API extern #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 #define MA_PRIVATE static
#endif #endif
#endif #endif
/* SIMD alignment in bytes. Currently set to 32 bytes in preparation for future AVX optimizations. */ /* SIMD alignment in bytes. Currently set to 32 bytes in preparation for future AVX optimizations. */
#define MA_SIMD_ALIGNMENT 32 #define MA_SIMD_ALIGNMENT 32
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment