From 7245ac11ef9be2420c8356c12acc79f93ea211bb Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 16 Jul 2018 22:46:02 +0000 Subject: Avoid implementations in .h files or #including .c files. Also, avoid the need for putting `_XOPEN_SOURCE` in every test file. --- auto_tests/toxav_many_test.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 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 94183421..ed005e2f 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c @@ -1,13 +1,7 @@ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 600 -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include "check_compat.h" - #include #include #include @@ -15,19 +9,19 @@ #include #include +#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32) +#include +#endif + #include +#include "../testing/misc_tools.h" #include "../toxav/toxav.h" #include "../toxcore/crypto_core.h" #include "../toxcore/logger.h" #include "../toxcore/tox.h" #include "../toxcore/util.h" - -#include "helpers.h" - -#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32) -#include -#endif +#include "check_compat.h" typedef struct { bool incoming; -- cgit v1.2.3