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/lossy_packet_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/lossy_packet_test.c')
-rw-r--r-- | auto_tests/lossy_packet_test.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/auto_tests/lossy_packet_test.c b/auto_tests/lossy_packet_test.c index c0af148f..71f45149 100644 --- a/auto_tests/lossy_packet_test.c +++ b/auto_tests/lossy_packet_test.c | |||
@@ -1,25 +1,18 @@ | |||
1 | /* Tests that we can send lossy packets. | 1 | /* Tests that we can send lossy packets. |
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 | ||
18 | #include "../toxcore/ccompat.h" | 13 | #include "../testing/misc_tools.h" |
19 | #include "../toxcore/tox.h" | ||
20 | #include "../toxcore/util.h" | 14 | #include "../toxcore/util.h" |
21 | 15 | #include "check_compat.h" | |
22 | #include "helpers.h" | ||
23 | 16 | ||
24 | #define LOSSY_PACKET_FILLER 200 | 17 | #define LOSSY_PACKET_FILLER 200 |
25 | 18 | ||