aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-17 12:04:33 -0700
committerChris Robinson <[email protected]>2010-03-17 12:04:33 -0700
commit9c417d33cc3e45d8b035de405f9a9c94be1ed218 (patch)
tree98635d63876cf699e4f8324491011a58991efe44 /OpenAL32
parent975f92fc8447dc23c5baea0c1809358bddabd9c0 (diff)
clock_gettime is available only when _POSIX_TIMERS is greater than 0
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 34120b00..a3a777d1 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -114,7 +114,7 @@ static inline void DeleteCriticalSection(CRITICAL_SECTION *cs)
static inline ALuint timeGetTime(void)
{
int ret;
-#ifdef _POSIX_TIMERS
+#if _POSIX_TIMERS > 0
struct timespec ts;
ret = clock_gettime(CLOCK_REALTIME, &ts);