From 50c526e1a5349bd69ce29dda703e914fb755ccf4 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Fri, 3 Mar 2017 21:30:11 +0300 Subject: Move c_sleep to helpers.h and misc_tools.h Also fix a mistake with forgotten braces around parameter --- auto_tests/toxav_many_test.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'auto_tests/toxav_many_test.c') 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 @@ #include "../toxcore/tox.h" #include "../toxcore/util.h" -#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -#include -#define c_sleep(x) Sleep(1*x) -#else +#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32) #include -#include -#define c_sleep(x) usleep(1000*x) #endif - typedef struct { bool incoming; uint32_t state; -- cgit v1.2.3