From 9c417d33cc3e45d8b035de405f9a9c94be1ed218 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 17 Mar 2010 12:04:33 -0700 Subject: clock_gettime is available only when _POSIX_TIMERS is greater than 0 --- OpenAL32/Include/alMain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/Include') 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); -- cgit v1.2.3