]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test1.cxx
Update the code a bit more, add a function to retreive the last error string and...
[simgear.git] / simgear / sound / openal_test1.cxx
index 0a62ef1e052bcad62ee568c93ba4c6824468e6e1..5d56bc9e83222ae9df692ad0faa3b61a876b108d 100644 (file)
@@ -1,5 +1,12 @@
 #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; }
+#else
 #include <unistd.h>    // sleep()
+#endif
 
 #if defined( __APPLE__ )
 # define AL_ILLEGAL_ENUM AL_INVALID_ENUM