]> 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 55127b2b4c73cb203981976ca83a811d54cc1b1d..5d56bc9e83222ae9df692ad0faa3b61a876b108d 100644 (file)
@@ -1,5 +1,13 @@
 #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
 # define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION