From a1f4e968563763435027a905be8349cda1974e00 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 May 2017 16:31:29 +0200 Subject: Get rid of platform dependent usleep/SleepEx. --- plugingui/testmain.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'plugingui') diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index d6c3220..5231205 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -24,13 +24,8 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include - -#if DG_PLATFORM == DG_PLATFORM_WINDOWS -#define WIN32_LEAN_AND_MEAN -#include -#endif -#include +#include +#include #include #include @@ -63,11 +58,7 @@ int main() break; } -#if DG_PLATFORM == DG_PLATFORM_WINDOWS - SleepEx(50, FALSE); -#else - usleep(50000); -#endif + std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; -- cgit v1.2.3