diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-16 22:46:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 20:44:26 +0000 |
commit | 7245ac11ef9be2420c8356c12acc79f93ea211bb (patch) | |
tree | e971c5c6e10c2310afe4b2cd80212feac9839f2a /auto_tests/tox_many_test.c | |
parent | 7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff) |
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'auto_tests/tox_many_test.c')
-rw-r--r-- | auto_tests/tox_many_test.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/auto_tests/tox_many_test.c b/auto_tests/tox_many_test.c index 4318b29b..ff217e87 100644 --- a/auto_tests/tox_many_test.c +++ b/auto_tests/tox_many_test.c | |||
@@ -1,25 +1,20 @@ | |||
1 | /* Auto Tests: Many clients. | 1 | /* Auto Tests: Many clients. |
2 | */ | 2 | */ |
3 | 3 | ||
4 | #ifndef _XOPEN_SOURCE | ||
5 | #define _XOPEN_SOURCE 600 | ||
6 | #endif | ||
7 | |||
8 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
9 | #include "config.h" | 5 | #include "config.h" |
10 | #endif | 6 | #endif |
11 | 7 | ||
12 | #include "check_compat.h" | ||
13 | |||
14 | #include <stdio.h> | 8 | #include <stdio.h> |
15 | #include <stdlib.h> | 9 | #include <stdlib.h> |
10 | #include <string.h> | ||
16 | #include <time.h> | 11 | #include <time.h> |
17 | 12 | ||
13 | #include "../testing/misc_tools.h" | ||
18 | #include "../toxcore/crypto_core.h" | 14 | #include "../toxcore/crypto_core.h" |
19 | #include "../toxcore/tox.h" | 15 | #include "../toxcore/tox.h" |
20 | #include "../toxcore/util.h" | 16 | #include "../toxcore/util.h" |
21 | 17 | #include "check_compat.h" | |
22 | #include "helpers.h" | ||
23 | 18 | ||
24 | static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) | 19 | static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) |
25 | { | 20 | { |