]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test2.cxx
Oops, ALUT 1.0 requires a little more work than expected.
[simgear.git] / simgear / sound / openal_test2.cxx
index 63353ab67ec107a062976927d2d1923a605ab795..bee6c4e7a2f85df2ae30833b0e3b17ca1773ca51 100644 (file)
@@ -1,5 +1,11 @@
 #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
 
 #include "sample_openal.hxx"
 #include "soundmgr_openal.hxx"