]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test1.cxx
Merge branch 'fredb/winfix'
[simgear.git] / simgear / sound / openal_test1.cxx
index 66678f8b353be80af8aec366ff5b18a7ea337152..e563753a9e5e9c785e6d8bd1b99de23df34e52d1 100644 (file)
@@ -1,9 +1,8 @@
 #include <stdio.h>
 
-#ifdef __MINGW32__
-// This is broken, but allows the file to compile without a POSIX
-// environment.
-static unsigned int sleep(unsigned int secs) { return 0; }
+#ifdef _WIN32
+#include <windows.h>
+#define sleep(x) Sleep(x*1000)
 #else
 #include <unistd.h>    // sleep()
 #endif