summaryrefslogtreecommitdiff
path: root/auto_tests/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/helpers.h')
-rw-r--r--auto_tests/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto_tests/helpers.h b/auto_tests/helpers.h
index b953e29a..7af127f5 100644
--- a/auto_tests/helpers.h
+++ b/auto_tests/helpers.h
@@ -9,6 +9,7 @@
9#include <stdio.h> 9#include <stdio.h>
10#include <string.h> 10#include <string.h>
11 11
12#ifndef c_sleep
12#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 13#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
13#include <windows.h> 14#include <windows.h>
14#define c_sleep(x) Sleep(x) 15#define c_sleep(x) Sleep(x)
@@ -16,6 +17,7 @@
16#include <unistd.h> 17#include <unistd.h>
17#define c_sleep(x) usleep(1000 * (x)) 18#define c_sleep(x) usleep(1000 * (x))
18#endif 19#endif
20#endif
19 21
20#define ITERATION_INTERVAL 200 22#define ITERATION_INTERVAL 200
21 23