13
0

MSVC doesn't have 'sleep()' (it uses 'Sleep()' with a capital 'S') so let's make sure it'll still compile

(see the note about possibly using 'Glib::usleep()' ??)
This commit is contained in:
John Emmas 2015-07-02 08:16:44 +01:00
parent 51dd5b525b
commit f814045f80

View File

@ -23,6 +23,13 @@
#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__