mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Remove Cosmopolitan pre-processing checks.
https://github.com/mackron/miniaudio/pull/1070
This commit is contained in:
+6
-10
@@ -3858,7 +3858,7 @@ typedef ma_uint16 wchar_t;
|
||||
|
||||
|
||||
/* Platform/backend detection. */
|
||||
#if defined(_WIN32) || defined(__COSMOPOLITAN__)
|
||||
#if defined(_WIN32)
|
||||
#define MA_WIN32
|
||||
#if defined(MA_FORCE_UWP) || (defined(WINAPI_FAMILY) && ((defined(WINAPI_FAMILY_PC_APP) && WINAPI_FAMILY == WINAPI_FAMILY_PC_APP) || (defined(WINAPI_FAMILY_PHONE_APP) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)))
|
||||
#define MA_WIN32_UWP
|
||||
@@ -6604,16 +6604,12 @@ This section contains the APIs for device playback and capture. Here is where yo
|
||||
#if defined(MA_WIN32_DESKTOP) /* DirectSound and WinMM backends are only supported on desktops. */
|
||||
#define MA_SUPPORT_DSOUND
|
||||
#define MA_SUPPORT_WINMM
|
||||
|
||||
/* Don't enable JACK here if compiling with Cosmopolitan. It'll be enabled in the Linux section below. */
|
||||
#if !defined(__COSMOPOLITAN__)
|
||||
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */
|
||||
#endif
|
||||
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */
|
||||
#endif
|
||||
#endif
|
||||
#if defined(MA_UNIX) && !defined(MA_ORBIS) && !defined(MA_PROSPERO)
|
||||
#if defined(MA_LINUX)
|
||||
#if !defined(MA_ANDROID) && !defined(__COSMOPOLITAN__) && !defined(MA_EMSCRIPTEN) /* ALSA is not supported on Android. */
|
||||
#if !defined(MA_ANDROID) && !defined(MA_EMSCRIPTEN) /* ALSA is not supported on Android. */
|
||||
#define MA_SUPPORT_ALSA
|
||||
#endif
|
||||
#endif
|
||||
@@ -11643,7 +11639,7 @@ IMPLEMENTATION
|
||||
#endif
|
||||
|
||||
/* Intrinsics Support */
|
||||
#if (defined(MA_X64) || defined(MA_X86)) && !defined(__COSMOPOLITAN__)
|
||||
#if defined(MA_X64) || defined(MA_X86)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
/* MSVC. */
|
||||
#if _MSC_VER >= 1400 && !defined(MA_NO_SSE2) /* 2005 */
|
||||
@@ -12080,7 +12076,7 @@ static MA_INLINE unsigned int ma_disable_denormals(void)
|
||||
}
|
||||
#elif defined(MA_X86) || defined(MA_X64)
|
||||
{
|
||||
#if defined(MA_SUPPORT_SSE2) && defined(__SSE2__) && !(defined(__TINYC__) || defined(__WATCOMC__) || defined(__COSMOPOLITAN__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||
#if defined(MA_SUPPORT_SSE2) && defined(__SSE2__) && !(defined(__TINYC__) || defined(__WATCOMC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||
{
|
||||
prevState = _mm_getcsr();
|
||||
_mm_setcsr(prevState | MA_MM_DENORMALS_ZERO_MASK | MA_MM_FLUSH_ZERO_MASK);
|
||||
@@ -12120,7 +12116,7 @@ static MA_INLINE void ma_restore_denormals(unsigned int prevState)
|
||||
}
|
||||
#elif defined(MA_X86) || defined(MA_X64)
|
||||
{
|
||||
#if defined(MA_SUPPORT_SSE2) && defined(__SSE2__) && !(defined(__TINYC__) || defined(__WATCOMC__) || defined(__COSMOPOLITAN__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||
#if defined(MA_SUPPORT_SSE2) && defined(__SSE2__) && !(defined(__TINYC__) || defined(__WATCOMC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||
{
|
||||
_mm_setcsr(prevState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user