mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix compilation errors with OpenWatcom.
This commit is contained in:
+2
-2
@@ -9690,7 +9690,7 @@ static MA_INLINE unsigned int ma_disable_denormals()
|
|||||||
}
|
}
|
||||||
#elif defined(MA_X86) || defined(MA_X64)
|
#elif defined(MA_X86) || defined(MA_X64)
|
||||||
{
|
{
|
||||||
#if !(defined(__TINYC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
#if !(defined(__TINYC__) || defined(__WATCOMC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||||
{
|
{
|
||||||
prevState = _mm_getcsr();
|
prevState = _mm_getcsr();
|
||||||
_mm_setcsr(prevState | MA_MM_DENORMALS_ZERO_MASK | MA_MM_FLUSH_ZERO_MASK);
|
_mm_setcsr(prevState | MA_MM_DENORMALS_ZERO_MASK | MA_MM_FLUSH_ZERO_MASK);
|
||||||
@@ -9730,7 +9730,7 @@ static MA_INLINE void ma_restore_denormals(unsigned int prevState)
|
|||||||
}
|
}
|
||||||
#elif defined(MA_X86) || defined(MA_X64)
|
#elif defined(MA_X86) || defined(MA_X64)
|
||||||
{
|
{
|
||||||
#if !(defined(__TINYC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
#if !(defined(__TINYC__) || defined(__WATCOMC__)) /* <-- Add compilers that lack support for _mm_getcsr() and _mm_setcsr() to this list. */
|
||||||
{
|
{
|
||||||
_mm_setcsr(prevState);
|
_mm_setcsr(prevState);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user