Navigation Menu

Skip to content

Commit

Permalink
Removed redundant include statements from test programs.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
philippwiesemann committed Feb 18, 2015
1 parent f75d6c0 commit f9adb45
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion test/loopwave.c
Expand Up @@ -29,7 +29,6 @@
#endif

#include "SDL.h"
#include "SDL_audio.h"

struct
{
Expand Down
3 changes: 0 additions & 3 deletions test/testatomic.c
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/testerror.c
Expand Up @@ -17,7 +17,6 @@
#include <signal.h>

#include "SDL.h"
#include "SDL_thread.h"

static int alive = 0;

Expand Down
1 change: 0 additions & 1 deletion test/testfile.c
Expand Up @@ -22,7 +22,6 @@
#endif

#include "SDL.h"
#include "SDL_endian.h"


#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions test/testhaptic.c
Expand Up @@ -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;


Expand Down
1 change: 0 additions & 1 deletion test/testhotplug.c
Expand Up @@ -17,7 +17,6 @@
#include <string.h>

#include "SDL.h"
#include "SDL_haptic.h"

#if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED

Expand Down
2 changes: 0 additions & 2 deletions test/testlock.c
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/testmessage.c
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions test/testplatform.c
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions test/testrumble.c
Expand Up @@ -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;


Expand Down
1 change: 0 additions & 1 deletion test/testsem.c
Expand Up @@ -17,7 +17,6 @@
#include <signal.h>

#include "SDL.h"
#include "SDL_thread.h"

#define NUM_THREADS 10

Expand Down
1 change: 0 additions & 1 deletion test/testthread.c
Expand Up @@ -17,7 +17,6 @@
#include <signal.h>

#include "SDL.h"
#include "SDL_thread.h"

static SDL_TLSID tls;
static int alive = 0;
Expand Down
1 change: 0 additions & 1 deletion test/torturethread.c
Expand Up @@ -18,7 +18,6 @@
#include <string.h>

#include "SDL.h"
#include "SDL_thread.h"

#define NUMTHREADS 10

Expand Down

0 comments on commit f9adb45

Please sign in to comment.