aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-02-08 00:22:22 -0800
committerChris Robinson <[email protected]>2011-02-08 00:22:22 -0800
commit9ffb38d6be446c563b751ffebeef66d6883486db (patch)
tree6be3257f1eb3dc904502275cf155f2d5f41bcb1b /OpenAL32
parent13397feccfa46a0924df83e261a35946ae8eaa9b (diff)
Prevent unused variable warnings when monotonic clock isn't available
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 4e0d03da..310e0d92 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -176,12 +176,12 @@ static __inline void DeleteCriticalSection(CRITICAL_SECTION *cs)
static __inline ALuint timeGetTime(void)
{
#if _POSIX_TIMERS > 0
- static int hasmono = 0;
struct timespec ts;
int ret = -1;
#if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK >= 0)
#if _POSIX_MONOTONIC_CLOCK == 0
+ static int hasmono = 0;
if(hasmono > 0 || (hasmono == 0 &&
(hasmono=sysconf(_SC_MONOTONIC_CLOCK)) > 0))
#endif