From 2a5a5b5c1b97cfe66149bd77b4402e80f69c37c1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 11 Jan 2008 06:54:09 -0800 Subject: Add Sleep wrapper --- OpenAL32/Include/alMain.h | 1 + 1 file changed, 1 insertion(+) (limited to 'OpenAL32/Include/alMain.h') 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 -- cgit v1.2.3