summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 15:34:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 15:34:34 +0300
commita90b8bd891eea8b33b9a6dd2622f6d7ae596be71 (patch)
tree8741c4fa289392a46cc721fb2b82bca3003ba984 /src/test
parent8b9eec4cb0b6065ef1ac582dda5bf70ae60d6e71 (diff)
downloadplus-a90b8bd891eea8b33b9a6dd2622f6d7ae596be71.tar.gz
plus-a90b8bd891eea8b33b9a6dd2622f6d7ae596be71.tar.bz2
plus-a90b8bd891eea8b33b9a6dd2622f6d7ae596be71.tar.xz
plus-a90b8bd891eea8b33b9a6dd2622f6d7ae596be71.zip
Fix compilation on windows.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp2
1 files changed, 1 insertions, 1 deletions
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 ++)