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/set_status_message_test.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'auto_tests/set_status_message_test.c') diff --git a/auto_tests/set_status_message_test.c b/auto_tests/set_status_message_test.c index fd6c3558..3ffdd3c4 100644 --- a/auto_tests/set_status_message_test.c +++ b/auto_tests/set_status_message_test.c @@ -1,25 +1,20 @@ /* Tests that we can set our status message */ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 600 -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include "check_compat.h" - #include #include +#include #include +#include "../testing/misc_tools.h" #include "../toxcore/ccompat.h" #include "../toxcore/tox.h" #include "../toxcore/util.h" - -#include "helpers.h" +#include "check_compat.h" #define STATUS_MESSAGE "Installing Gentoo" -- cgit v1.2.3