mirror of https://github.com/encounter/SDL.git
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.
This commit is contained in:
parent
f75d6c0915
commit
f9adb453dd
|
@ -29,7 +29,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_audio.h"
|
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "SDL.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
|
Absolutely basic tests just to see if we get the expected value
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
static int alive = 0;
|
static int alive = 0;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_endian.h"
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -22,8 +22,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
|
||||||
#ifndef SDL_HAPTIC_DISABLED
|
#ifndef SDL_HAPTIC_DISABLED
|
||||||
|
|
||||||
#include "SDL_haptic.h"
|
|
||||||
|
|
||||||
static SDL_Haptic *haptic;
|
static SDL_Haptic *haptic;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_haptic.h"
|
|
||||||
|
|
||||||
#if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED
|
#if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
#include <stdlib.h> /* for atexit() */
|
#include <stdlib.h> /* for atexit() */
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_mutex.h"
|
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
static SDL_mutex *mutex = NULL;
|
static SDL_mutex *mutex = NULL;
|
||||||
static SDL_threadID mainthread;
|
static SDL_threadID mainthread;
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "SDL.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
|
* Watcom C flags these as Warning 201: "Unreachable code" if you just
|
||||||
|
|
|
@ -33,8 +33,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
|
||||||
#ifndef SDL_HAPTIC_DISABLED
|
#ifndef SDL_HAPTIC_DISABLED
|
||||||
|
|
||||||
#include "SDL_haptic.h"
|
|
||||||
|
|
||||||
static SDL_Haptic *haptic;
|
static SDL_Haptic *haptic;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
#define NUM_THREADS 10
|
#define NUM_THREADS 10
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
static SDL_TLSID tls;
|
static SDL_TLSID tls;
|
||||||
static int alive = 0;
|
static int alive = 0;
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_thread.h"
|
|
||||||
|
|
||||||
#define NUMTHREADS 10
|
#define NUMTHREADS 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue