Skip to content

Commit e6dc01d

Browse files
committed
test/cfg: cleaned up includes based on include-what-you-use
1 parent 84a1059 commit e6dc01d

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

test/cfg/gnu.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#include <stdlib.h>
1616
#include <stdint.h>
1717
#include <stdio.h>
18-
#include <stdarg.h>
19-
#include <netdb.h>
20-
#include <sys/time.h>
2118
#include <sys/types.h>
2219
#include <pwd.h>
2320
#include <sys/mman.h>
@@ -37,6 +34,10 @@
3734
#if !defined(__APPLE__)
3835
#include <byteswap.h>
3936
#endif
37+
#include <features.h>
38+
#include <sys/socket.h>
39+
#include <time.h>
40+
#include <stddef.h>
4041

4142
#ifdef __gnu_linux__
4243
void unreachableCode_error(void) // #11197

test/cfg/gtk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
88
//
99

10-
#include <stdlib.h>
11-
#include <gtk/gtk.h>
10+
#include <stdio.h>
1211
#include <glib.h>
12+
#include <glib/gtypes.h>
1313
#include <glib/gi18n.h>
1414

1515

test/cfg/openssl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
88
//
99

10-
#include <openssl/ssl.h>
1110
#include <openssl/bio.h>
11+
#include <openssl/evp.h>
12+
#include <openssl/types.h>
13+
#include <stdio.h>
1214
#include <string.h>
1315

1416
void valid_code(BIO * bio)

test/cfg/posix.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
#include <time.h>
3131
#include <pthread.h>
3232
#include <syslog.h>
33-
#include <stdarg.h>
3433
#include <ctype.h>
3534
#include <stdbool.h>
36-
#include <time.h>
3735
#include <string.h>
3836
#include <strings.h>
3937
#if defined(__APPLE__)
@@ -47,6 +45,7 @@
4745
#include <wchar.h>
4846
#include <sys/stat.h>
4947
#include <utime.h>
48+
#include <stddef.h>
5049

5150

5251
#if !defined(__APPLE__)

test/cfg/python.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define PY_SSIZE_T_CLEAN
1111
#include <Python.h> // should be the first include
1212
#include <stdio.h>
13+
#include <stdlib.h>
1314

1415
void validCode(PyObject * pPyObjArg)
1516
{

test/cfg/std.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@
2424
#define __STDC_WANT_LIB_EXT1__ 1
2525
#include <time.h>
2626
#include <stdbool.h>
27-
#include <stdint.h>
2827
#ifndef __STDC_NO_THREADS__
2928
#include <threads.h>
3029
#endif
3130
#include <inttypes.h>
3231
#include <float.h>
3332
#include <stdarg.h>
34-
#include <sys/types.h>
3533
#include <assert.h>
3634
#include <alloca.h>
3735
#include <locale.h>
3836
#include <signal.h>
37+
#include <complex.h>
38+
#include <math.h>
39+
#include <stddef.h>
3940

4041
size_t invalidFunctionArgStr_wcslen(void)
4142
{

0 commit comments

Comments
 (0)