summaryrefslogtreecommitdiff
path: root/auto_tests/toxav_many_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-16 22:46:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-21 20:44:26 +0000
commit7245ac11ef9be2420c8356c12acc79f93ea211bb (patch)
treee971c5c6e10c2310afe4b2cd80212feac9839f2a /auto_tests/toxav_many_test.c
parent7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (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/toxav_many_test.c')
-rw-r--r--auto_tests/toxav_many_test.c18
1 files changed, 6 insertions, 12 deletions
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 @@
1#ifndef _XOPEN_SOURCE
2#define _XOPEN_SOURCE 600
3#endif
4
5#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
6#include "config.h" 2#include "config.h"
7#endif 3#endif
8 4
9#include "check_compat.h"
10
11#include <stdint.h> 5#include <stdint.h>
12#include <stdio.h> 6#include <stdio.h>
13#include <stdlib.h> 7#include <stdlib.h>
@@ -15,19 +9,19 @@
15#include <sys/types.h> 9#include <sys/types.h>
16#include <time.h> 10#include <time.h>
17 11
12#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
13#include <pthread.h>
14#endif
15
18#include <vpx/vpx_image.h> 16#include <vpx/vpx_image.h>
19 17
18#include "../testing/misc_tools.h"
20#include "../toxav/toxav.h" 19#include "../toxav/toxav.h"
21#include "../toxcore/crypto_core.h" 20#include "../toxcore/crypto_core.h"
22#include "../toxcore/logger.h" 21#include "../toxcore/logger.h"
23#include "../toxcore/tox.h" 22#include "../toxcore/tox.h"
24#include "../toxcore/util.h" 23#include "../toxcore/util.h"
25 24#include "check_compat.h"
26#include "helpers.h"
27
28#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
29#include <pthread.h>
30#endif
31 25
32typedef struct { 26typedef struct {
33 bool incoming; 27 bool incoming;