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.
--- a/test/loopwave.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/loopwave.c Wed Feb 18 21:31:21 2015 +0100
@@ -29,7 +29,6 @@
#endif
#include "SDL.h"
-#include "SDL_audio.h"
struct
{
--- a/test/testatomic.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testatomic.c Wed Feb 18 21:31:21 2015 +0100
@@ -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
--- a/test/testerror.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testerror.c Wed Feb 18 21:31:21 2015 +0100
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
static int alive = 0;
--- a/test/testfile.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testfile.c Wed Feb 18 21:31:21 2015 +0100
@@ -22,7 +22,6 @@
#endif
#include "SDL.h"
-#include "SDL_endian.h"
#include <stdio.h>
--- a/test/testhaptic.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testhaptic.c Wed Feb 18 21:31:21 2015 +0100
@@ -22,8 +22,6 @@
#ifndef SDL_HAPTIC_DISABLED
-#include "SDL_haptic.h"
-
static SDL_Haptic *haptic;
--- a/test/testhotplug.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testhotplug.c Wed Feb 18 21:31:21 2015 +0100
@@ -17,7 +17,6 @@
#include <string.h>
#include "SDL.h"
-#include "SDL_haptic.h"
#if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED
--- a/test/testlock.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testlock.c Wed Feb 18 21:31:21 2015 +0100
@@ -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;
--- a/test/testmessage.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testmessage.c Wed Feb 18 21:31:21 2015 +0100
@@ -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
--- a/test/testplatform.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testplatform.c Wed Feb 18 21:31:21 2015 +0100
@@ -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
--- a/test/testrumble.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testrumble.c Wed Feb 18 21:31:21 2015 +0100
@@ -33,8 +33,6 @@
#ifndef SDL_HAPTIC_DISABLED
-#include "SDL_haptic.h"
-
static SDL_Haptic *haptic;
--- a/test/testsem.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testsem.c Wed Feb 18 21:31:21 2015 +0100
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
#define NUM_THREADS 10
--- a/test/testthread.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/testthread.c Wed Feb 18 21:31:21 2015 +0100
@@ -17,7 +17,6 @@
#include <signal.h>
#include "SDL.h"
-#include "SDL_thread.h"
static SDL_TLSID tls;
static int alive = 0;
--- a/test/torturethread.c Tue Feb 17 23:00:46 2015 -0500
+++ b/test/torturethread.c Wed Feb 18 21:31:21 2015 +0100
@@ -18,7 +18,6 @@
#include <string.h>
#include "SDL.h"
-#include "SDL_thread.h"
#define NUMTHREADS 10