summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-11 06:54:09 -0800
committerChris Robinson <[email protected]>2008-01-11 06:54:09 -0800
commit2a5a5b5c1b97cfe66149bd77b4402e80f69c37c1 (patch)
tree12e8b3471a28c3135beabc82def508b70ad6d905 /OpenAL32/Include
parenta97ecb8690c64a6007ad3f0e983cb8ef67b47795 (diff)
Add Sleep wrapper
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index adf3f2c3..113101e4 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -68,6 +68,7 @@ static inline ALuint timeGetTime(void)
return tv.tv_usec/1000 + tv.tv_sec*1000;
}
+#define Sleep(x) ((void)usleep((unsigned int)x*1000))
#define min(x,y) (((x)<(y))?(x):(y))
#define max(x,y) (((x)>(y))?(x):(y))
#endif