]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test1.cxx
use an additional shader program map keyed using the resolved shader filenames
[simgear.git] / simgear / sound / openal_test1.cxx
index 66678f8b353be80af8aec366ff5b18a7ea337152..3d055b00104d72cf7111e3e56ba68f44a234c1c8 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
@@ -13,7 +12,7 @@ static unsigned int sleep(unsigned int secs) { return 0; }
 # define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
 # include <OpenAL/al.h>
 # include <OpenAL/alc.h>
-# include <OpenAL/alut.h>
+# include <ALUT/alut.h>
 #elif defined(OPENALSDK)
 # include <al.h>
 # include <alc.h>