diff options
author | Diadlo <polsha3@gmail.com> | 2017-03-03 21:30:11 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-03-25 20:40:34 +0300 |
commit | 50c526e1a5349bd69ce29dda703e914fb755ccf4 (patch) | |
tree | 52321368957f105c5db3e86fdbf7b6c47e848f7e /auto_tests/tox_many_test.c | |
parent | a1f9df48d61ccc34e35bf98c3c61ec7861e8e1b6 (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/tox_many_test.c')
-rw-r--r-- | auto_tests/tox_many_test.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/auto_tests/tox_many_test.c b/auto_tests/tox_many_test.c index b44bbb0c..1a1a715d 100644 --- a/auto_tests/tox_many_test.c +++ b/auto_tests/tox_many_test.c | |||
@@ -17,14 +17,6 @@ | |||
17 | 17 | ||
18 | #include "helpers.h" | 18 | #include "helpers.h" |
19 | 19 | ||
20 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | ||
21 | #include <windows.h> | ||
22 | #define c_sleep(x) Sleep(1*x) | ||
23 | #else | ||
24 | #include <unistd.h> | ||
25 | #define c_sleep(x) usleep(1000*x) | ||
26 | #endif | ||
27 | |||
28 | static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) | 20 | static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) |
29 | { | 21 | { |
30 | if (*((uint32_t *)userdata) != 974536) { | 22 | if (*((uint32_t *)userdata) != 974536) { |