]> 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 44a36e2627b74be0654e0602b906748af86d9c04..bee6c4e7a2f85df2ae30833b0e3b17ca1773ca51 100644 (file)
@@ -1,4 +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"