From f814045f80d2fdfb0bf538506a26c78bfdbbb8d4 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 2 Jul 2015 08:16:44 +0100 Subject: [PATCH] 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()' ??) --- libs/backends/wavesaudio/waves_audiobackend.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#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__