Commit 448a7c90 authored by David Reid's avatar David Reid

Fix some -Wundef warnings.

parent f099c7b1
...@@ -10484,7 +10484,7 @@ static void ma_sleep__posix(ma_uint32 milliseconds) ...@@ -10484,7 +10484,7 @@ static void ma_sleep__posix(ma_uint32 milliseconds)
(void)milliseconds; (void)milliseconds;
MA_ASSERT(MA_FALSE); /* The Emscripten build should never sleep. */ MA_ASSERT(MA_FALSE); /* The Emscripten build should never sleep. */
#else #else
#if _POSIX_C_SOURCE >= 199309L #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
struct timespec ts; struct timespec ts;
ts.tv_sec = milliseconds / 1000; ts.tv_sec = milliseconds / 1000;
ts.tv_nsec = milliseconds % 1000 * 1000000; ts.tv_nsec = milliseconds % 1000 * 1000000;
...@@ -15798,7 +15798,7 @@ Timing ...@@ -15798,7 +15798,7 @@ Timing
return (emscripten_get_now() - pTimer->counterD) / 1000; /* Emscripten is in milliseconds. */ return (emscripten_get_now() - pTimer->counterD) / 1000; /* Emscripten is in milliseconds. */
} }
#else #else
#if _POSIX_C_SOURCE >= 199309L #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
#if defined(CLOCK_MONOTONIC) #if defined(CLOCK_MONOTONIC)
#define MA_CLOCK_ID CLOCK_MONOTONIC #define MA_CLOCK_ID CLOCK_MONOTONIC
#else #else
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