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:
parent
51dd5b525b
commit
f814045f80
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user