Removed redundant include statements from test programs. The needed header files are already included with SDL.h. Still including them in the test programs is confusing because it somehow suggests they would be needed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
diff --git a/test/loopwave.c b/test/loopwave.c
index 9d50aae..e09fe0f 100644
--- a/test/loopwave.c
+++ b/test/loopwave.c
@@ -29,7 +29,6 @@
#endif
#include "SDL.h"
-#include "SDL_audio.h"
struct
{
diff --git a/test/testatomic.c b/test/testatomic.c
index 662a017..178de7a 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -12,9 +12,6 @@
#include <stdio.h>
#include "SDL.h"
-#include "SDL_atomic.h"
-#include "SDL_assert.h"
-#include "SDL_cpuinfo.h"
/*
Absolutely basic tests just to see if we get the expected value
diff --git a/test/testerror.c b/test/testerror.c
index 1fa6088..8290680 100644
--- a/test/testerror.c
+++ b/test/testerror.c
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
static int alive = 0;
diff --git a/test/testfile.c b/test/testfile.c
index 172da86..38a6bb7 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -22,7 +22,6 @@
#endif
#include "SDL.h"
-#include "SDL_endian.h"
#include <stdio.h>
diff --git a/test/testhaptic.c b/test/testhaptic.c
index ac8ab41..bffe446 100644
--- a/test/testhaptic.c
+++ b/test/testhaptic.c
@@ -22,8 +22,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#ifndef SDL_HAPTIC_DISABLED
-#include "SDL_haptic.h"
-
static SDL_Haptic *haptic;
diff --git a/test/testhotplug.c b/test/testhotplug.c
index ba06dea..1b68db1 100644
--- a/test/testhotplug.c
+++ b/test/testhotplug.c
@@ -17,7 +17,6 @@
#include <string.h>
#include "SDL.h"
-#include "SDL_haptic.h"
#if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED
diff --git a/test/testlock.c b/test/testlock.c
index 9ca3ca1..92a5e9b 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -19,8 +19,6 @@
#include <stdlib.h> /* for atexit() */
#include "SDL.h"
-#include "SDL_mutex.h"
-#include "SDL_thread.h"
static SDL_mutex *mutex = NULL;
static SDL_threadID mainthread;
diff --git a/test/testmessage.c b/test/testmessage.c
index f44880c..b0bf39c 100644
--- a/test/testmessage.c
+++ b/test/testmessage.c
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
static void
diff --git a/test/testplatform.c b/test/testplatform.c
index e0dc29e..232bfe6 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -13,9 +13,6 @@
#include <stdio.h>
#include "SDL.h"
-#include "SDL_endian.h"
-#include "SDL_cpuinfo.h"
-#include "SDL_assert.h"
/*
* Watcom C flags these as Warning 201: "Unreachable code" if you just
diff --git a/test/testrumble.c b/test/testrumble.c
index 74a7e98..d72e5d9 100644
--- a/test/testrumble.c
+++ b/test/testrumble.c
@@ -33,8 +33,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#ifndef SDL_HAPTIC_DISABLED
-#include "SDL_haptic.h"
-
static SDL_Haptic *haptic;
diff --git a/test/testsem.c b/test/testsem.c
index ca71ec2..8d41e08 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
#define NUM_THREADS 10
diff --git a/test/testthread.c b/test/testthread.c
index d732320..75aed83 100644
--- a/test/testthread.c
+++ b/test/testthread.c
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
static SDL_TLSID tls;
static int alive = 0;
diff --git a/test/torturethread.c b/test/torturethread.c
index bc4e113..2e572b6 100644
--- a/test/torturethread.c
+++ b/test/torturethread.c
@@ -18,7 +18,6 @@
#include <string.h>
#include "SDL.h"
-#include "SDL_thread.h"
#define NUMTHREADS 10