MSVC doesn't have 'sleep()' (it uses 'Sleep()' with a capital 'S') so let's make...
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 2 Jul 2015 07:16:44 +0000 (08:16 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 2 Jul 2015 07:23:38 +0000 (08:23 +0100)
(see the note about possibly using 'Glib::usleep()' ??)

libs/backends/wavesaudio/waves_audiobackend.cc

index 8619262d1c1570ce0c318780ac1047b43a1a38eb..8cd94c4e3411a5ebf359710b2c7153def591a4db 100644 (file)
 
 #include "ardour/runtime_functions.h"
 
+#ifdef COMPILER_MSVC
+#include <windows.h>
+#define sleep(X) Sleep((X) * 1000)
+// JE - Perhaps we should be using Glib::usleep() here, rather than sleep()??  But
+// that would make the Waves backend dependent on Glib (which is isn't, currently).
+#endif
+
 using namespace ARDOUR;
 
 #if defined __MINGW64__ || defined __MINGW32__