diff options
author | John Emmas <johne53@tiscali.co.uk> | 2015-07-02 08:16:44 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2015-07-02 08:23:38 +0100 |
commit | f814045f80d2fdfb0bf538506a26c78bfdbbb8d4 (patch) | |
tree | 2da003c23c88c639eb2cb6d766aa920b2ce5d026 | |
parent | 51dd5b525b1cbe143538dd39d10dc8377c92812f (diff) |
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()' ??)
-rw-r--r-- | libs/backends/wavesaudio/waves_audiobackend.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/backends/wavesaudio/waves_audiobackend.cc b/libs/backends/wavesaudio/waves_audiobackend.cc index 8619262d1c..8cd94c4e34 100644 --- a/libs/backends/wavesaudio/waves_audiobackend.cc +++ b/libs/backends/wavesaudio/waves_audiobackend.cc @@ -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__ |