Skip to content

Commit

Permalink
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
Browse files Browse the repository at this point in the history
The new header will include SDL_config.h, but allows for other global stuff.
  • Loading branch information
icculus committed Nov 25, 2013
1 parent 31caa22 commit 7e1289a
Show file tree
Hide file tree
Showing 365 changed files with 393 additions and 365 deletions.
2 changes: 1 addition & 1 deletion src/SDL.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

#if defined(__WIN32__)
#include "core/windows/SDL_windows.h"
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_assert.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

#if defined(__WIN32__)
#include "core/windows/SDL_windows.h"
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_error.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

/* Simple error handling in SDL */

Expand Down
2 changes: 1 addition & 1 deletion src/SDL_error_c.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

/* This file defines a structure that carries language-independent
error messages
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_hints.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

#include "SDL_hints.h"
#include "SDL_error.h"
Expand Down
28 changes: 28 additions & 0 deletions src/SDL_internal.h
@@ -0,0 +1,28 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _SDL_internal_h
#define _SDL_internal_h

#include "SDL_config.h"

#endif

/* vi: set ts=4 sw=4 expandtab: */
2 changes: 1 addition & 1 deletion src/SDL_log.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "./SDL_internal.h"

#if defined(__WIN32__)
#include "core/windows/SDL_windows.h"
Expand Down
2 changes: 1 addition & 1 deletion src/atomic/SDL_atomic.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

#include "SDL_atomic.h"

Expand Down
2 changes: 1 addition & 1 deletion src/atomic/SDL_spinlock.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

#ifdef __WIN32__
#include "../core/windows/SDL_windows.h"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* Allow access to a raw mixing buffer */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audio_c.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* Functions for audio drivers to perform runtime conversion of audio format */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audiodev.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* Get the name of the audio device we use for output */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audiodev_c.h
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL.h"
#include "SDL_config.h"
#include "../SDL_internal.h"
#include "SDL_sysaudio.h"

/* Open the audio device for playback, and don't block if busy */
Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audiomem.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

#define SDL_AllocAudioMem SDL_malloc
#define SDL_FreeAudioMem SDL_free
Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_audiotypecvt.c
Expand Up @@ -20,7 +20,7 @@
3. This notice may not be removed or altered from any source distribution.
*/

#include "SDL_config.h"
#include "../SDL_internal.h"
#include "SDL_audio.h"
#include "SDL_audio_c.h"

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_mixer.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* This provides the default mixing callback for the SDL audio routines */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_sysaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

#ifndef _SDL_sysaudio_h
#define _SDL_sysaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_wave.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* Microsoft WAVE file loading routines */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/SDL_wave.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../SDL_internal.h"

/* WAVE files are little-endian */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_ALSA

Expand Down
2 changes: 1 addition & 1 deletion src/audio/alsa/SDL_alsa_audio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_ALSA_audio_h
#define _SDL_ALSA_audio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/android/SDL_androidaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_ANDROID

Expand Down
2 changes: 1 addition & 1 deletion src/audio/android/SDL_androidaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_androidaudio_h
#define _SDL_androidaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/arts/SDL_artsaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_ARTS

Expand Down
2 changes: 1 addition & 1 deletion src/audio/arts/SDL_artsaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_artscaudio_h
#define _SDL_artscaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/bsd/SDL_bsdaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_BSD

Expand Down
2 changes: 1 addition & 1 deletion src/audio/bsd/SDL_bsdaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_bsdaudio_h
#define _SDL_bsdaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/coreaudio/SDL_coreaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"
#include "SDL_audio.h"
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/coreaudio/SDL_coreaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_coreaudio_h
#define _SDL_coreaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/directsound/SDL_directsound.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_DSOUND

Expand Down
2 changes: 1 addition & 1 deletion src/audio/directsound/SDL_directsound.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_directsound_h
#define _SDL_directsound_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/disk/SDL_diskaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_DISK

Expand Down
2 changes: 1 addition & 1 deletion src/audio/disk/SDL_diskaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_diskaudio_h
#define _SDL_diskaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dsp/SDL_dspaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_OSS

Expand Down
2 changes: 1 addition & 1 deletion src/audio/dsp/SDL_dspaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_dspaudio_h
#define _SDL_dspaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dummy/SDL_dummyaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

/* Output audio to nowhere... */

Expand Down
2 changes: 1 addition & 1 deletion src/audio/dummy/SDL_dummyaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_dummyaudio_h
#define _SDL_dummyaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/esd/SDL_esdaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_ESD

Expand Down
2 changes: 1 addition & 1 deletion src/audio/esd/SDL_esdaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_esdaudio_h
#define _SDL_esdaudio_h
Expand Down
2 changes: 1 addition & 1 deletion src/audio/fusionsound/SDL_fsaudio.c
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_AUDIO_DRIVER_FUSIONSOUND

Expand Down
2 changes: 1 addition & 1 deletion src/audio/fusionsound/SDL_fsaudio.h
Expand Up @@ -18,7 +18,7 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_config.h"
#include "../../SDL_internal.h"

#ifndef _SDL_fsaudio_h
#define _SDL_fsaudio_h
Expand Down

0 comments on commit 7e1289a

Please sign in to comment.