From a90b8bd891eea8b33b9a6dd2622f6d7ae596be71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 15:34:34 +0300 Subject: Fix compilation on windows. --- src/test/testlauncher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 53e6108e9..f761c7981 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -469,6 +469,7 @@ int TestLauncher::testDye() int TestLauncher::testDyeSpeed() { +#if defined __linux__ || defined __linux const int sz = 100000; uint32_t buf[sz]; timespec time1; @@ -479,7 +480,6 @@ int TestLauncher::testDyeSpeed() for (int f = 0; f < sz; f ++) buf[f] = f; -#if defined __linux__ || defined __linux clock_gettime(CLOCK_MONOTONIC, &time1); for (int f = 0; f < 1000; f ++) -- cgit v1.2.3-60-g2f50