summaryrefslogtreecommitdiff
path: root/auto_tests/toxav_many_test.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-03-03 21:30:11 +0300
committerDiadlo <polsha3@gmail.com>2017-03-25 20:40:34 +0300
commit50c526e1a5349bd69ce29dda703e914fb755ccf4 (patch)
tree52321368957f105c5db3e86fdbf7b6c47e848f7e /auto_tests/toxav_many_test.c
parenta1f9df48d61ccc34e35bf98c3c61ec7861e8e1b6 (diff)
Move c_sleep to helpers.h and misc_tools.h
Also fix a mistake with forgotten braces around parameter
Diffstat (limited to 'auto_tests/toxav_many_test.c')
-rw-r--r--auto_tests/toxav_many_test.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c
index 1a10db44..83a7b313 100644
--- a/auto_tests/toxav_many_test.c
+++ b/auto_tests/toxav_many_test.c
@@ -21,16 +21,10 @@
21#include "../toxcore/tox.h" 21#include "../toxcore/tox.h"
22#include "../toxcore/util.h" 22#include "../toxcore/util.h"
23 23
24#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 24#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
25#include <windows.h>
26#define c_sleep(x) Sleep(1*x)
27#else
28#include <pthread.h> 25#include <pthread.h>
29#include <unistd.h>
30#define c_sleep(x) usleep(1000*x)
31#endif 26#endif
32 27
33
34typedef struct { 28typedef struct {
35 bool incoming; 29 bool incoming;
36 uint32_t state; 30 uint32_t state;