Fixed bug 5235 - All internal sources should include SDL_assert.h

Ryan C. Gordon

We should really stick this in SDL_internal.h or something so it's always available.
This commit is contained in:
Sam Lantinga 2020-12-09 07:16:22 -08:00
parent 479db43058
commit cb36189692
113 changed files with 6 additions and 124 deletions

View File

@ -18,11 +18,10 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "./SDL_internal.h" #include "./SDL_internal.h"
#include "SDL.h" #include "SDL.h"
#include "./SDL_dataqueue.h" #include "./SDL_dataqueue.h"
#include "SDL_assert.h"
typedef struct SDL_DataQueuePacket typedef struct SDL_DataQueuePacket
{ {

View File

@ -116,6 +116,7 @@
#define SDL_HAVE_YUV !SDL_LEAN_AND_MEAN #define SDL_HAVE_YUV !SDL_LEAN_AND_MEAN
#endif #endif
#include "SDL_assert.h"
#include "SDL_log.h" #include "SDL_log.h"
#endif /* SDL_internal_h_ */ #endif /* SDL_internal_h_ */

View File

@ -30,7 +30,6 @@
#include "SDL_audio_c.h" #include "SDL_audio_c.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_assert.h"
#include "../SDL_dataqueue.h" #include "../SDL_dataqueue.h"
#include "SDL_cpuinfo.h" #include "SDL_cpuinfo.h"

View File

@ -18,12 +18,11 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../SDL_internal.h" #include "../SDL_internal.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "SDL_audio_c.h" #include "SDL_audio_c.h"
#include "SDL_cpuinfo.h" #include "SDL_cpuinfo.h"
#include "SDL_assert.h"
#ifdef __ARM_NEON #ifdef __ARM_NEON
#define HAVE_NEON_INTRINSICS 1 #define HAVE_NEON_INTRINSICS 1

View File

@ -32,7 +32,6 @@
#include <signal.h> /* For kill() */ #include <signal.h> /* For kill() */
#include <string.h> #include <string.h>
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"

View File

@ -24,7 +24,6 @@
/* Output audio to Android */ /* Output audio to Android */
#include "SDL_assert.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "SDL_androidaudio.h" #include "SDL_androidaudio.h"

View File

@ -29,7 +29,6 @@
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
#include "SDL_coreaudio.h" #include "SDL_coreaudio.h"
#include "SDL_assert.h"
#include "../../thread/SDL_systhread.h" #include "../../thread/SDL_systhread.h"
#define DEBUG_COREAUDIO 0 #define DEBUG_COREAUDIO 0

View File

@ -24,7 +24,6 @@
/* Allow access to a raw mixing buffer */ /* Allow access to a raw mixing buffer */
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_audio.h" #include "SDL_audio.h"

View File

@ -25,7 +25,6 @@
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "SDL_emscriptenaudio.h" #include "SDL_emscriptenaudio.h"
#include "SDL_assert.h"
#include <emscripten/emscripten.h> #include <emscripten/emscripten.h>

View File

@ -36,7 +36,6 @@ extern "C"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
#include "SDL_haikuaudio.h" #include "SDL_haikuaudio.h"
#include "SDL_assert.h"
} }

View File

@ -18,12 +18,10 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#if SDL_AUDIO_DRIVER_JACK #if SDL_AUDIO_DRIVER_JACK
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"

View File

@ -26,7 +26,6 @@
https://googlesamples.github.io/android-audio-high-performance/guides/opensl_es.html https://googlesamples.github.io/android-audio-high-performance/guides/opensl_es.html
*/ */
#include "SDL_assert.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../../core/android/SDL_android.h" #include "../../core/android/SDL_android.h"

View File

@ -26,7 +26,6 @@
Stéphan Kochen: stephan .a.t. kochen.nl Stéphan Kochen: stephan .a.t. kochen.nl
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#if SDL_AUDIO_DRIVER_PULSEAUDIO #if SDL_AUDIO_DRIVER_PULSEAUDIO

View File

@ -18,7 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#if SDL_AUDIO_DRIVER_WASAPI #if SDL_AUDIO_DRIVER_WASAPI
@ -28,7 +27,6 @@
#include "SDL_timer.h" #include "SDL_timer.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
#include "SDL_assert.h"
#define COBJMACROS #define COBJMACROS
#include <mmdeviceapi.h> #include <mmdeviceapi.h>

View File

@ -18,7 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
/* This is code that Windows uses to talk to WASAPI-related system APIs. /* This is code that Windows uses to talk to WASAPI-related system APIs.
@ -34,7 +33,6 @@
#include "SDL_timer.h" #include "SDL_timer.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
#include "SDL_assert.h"
#define COBJMACROS #define COBJMACROS
#include <mmdeviceapi.h> #include <mmdeviceapi.h>

View File

@ -18,7 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
// This is C++/CX code that the WinRT port uses to talk to WASAPI-related // This is C++/CX code that the WinRT port uses to talk to WASAPI-related
@ -40,7 +39,6 @@ extern "C" {
#include "SDL_timer.h" #include "SDL_timer.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
#include "SDL_assert.h"
} }
#define COBJMACROS #define COBJMACROS

View File

@ -27,7 +27,6 @@
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
#include <mmsystem.h> #include <mmsystem.h>
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_audio.h" #include "SDL_audio.h"
#include "../SDL_audio_c.h" #include "../SDL_audio_c.h"

View File

@ -21,7 +21,6 @@
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_atomic.h" #include "SDL_atomic.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_main.h" #include "SDL_main.h"

View File

@ -39,7 +39,6 @@
#include <linux/input.h> #include <linux/input.h>
#include "SDL.h" #include "SDL.h"
#include "SDL_assert.h"
#include "SDL_endian.h" #include "SDL_endian.h"
#include "SDL_scancode.h" #include "SDL_scancode.h"
#include "../../events/SDL_events_c.h" #include "../../events/SDL_events_c.h"

View File

@ -21,7 +21,6 @@
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_assert.h"
#include "SDL_poll.h" #include "SDL_poll.h"
#ifdef HAVE_POLL #ifdef HAVE_POLL

View File

@ -22,7 +22,6 @@
#ifndef __WINRT__ #ifndef __WINRT__
#include "SDL_assert.h"
#include "SDL_hid.h" #include "SDL_hid.h"

View File

@ -24,7 +24,6 @@
#include "SDL_windows.h" #include "SDL_windows.h"
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_assert.h"
#include <objbase.h> /* for CoInitialize/CoUninitialize (Win32 only) */ #include <objbase.h> /* for CoInitialize/CoUninitialize (Win32 only) */

View File

@ -20,7 +20,6 @@
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_assert.h"
#include "SDL_xinput.h" #include "SDL_xinput.h"

View File

@ -47,7 +47,6 @@ using namespace Windows::Phone::UI::Input;
/* SDL includes */ /* SDL includes */
extern "C" { extern "C" {
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_main.h" #include "SDL_main.h"

View File

@ -25,7 +25,6 @@
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_events_c.h" #include "SDL_events_c.h"
#include "SDL_assert.h"
#include "../video/SDL_sysvideo.h" #include "../video/SDL_sysvideo.h"

View File

@ -22,7 +22,6 @@
/* General mouse handling code for SDL */ /* General mouse handling code for SDL */
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_events.h" #include "SDL_events.h"

View File

@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../SDL_internal.h" #include "../SDL_internal.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
/* General quit handling code for SDL */ /* General quit handling code for SDL */

View File

@ -22,7 +22,6 @@
/* General touch handling code for SDL */ /* General touch handling code for SDL */
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_events_c.h" #include "SDL_events_c.h"
#include "../video/SDL_sysvideo.h" #include "../video/SDL_sysvideo.h"

View File

@ -32,7 +32,6 @@
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_filesystem.h" #include "SDL_filesystem.h"
char * char *

View File

@ -28,7 +28,6 @@
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
#include <shlobj.h> #include <shlobj.h>
#include "SDL_assert.h"
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_filesystem.h" #include "SDL_filesystem.h"

View File

@ -23,7 +23,6 @@
#include "SDL_syshaptic.h" #include "SDL_syshaptic.h"
#include "SDL_haptic_c.h" #include "SDL_haptic_c.h"
#include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */ #include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */
#include "SDL_assert.h"
/* Global for SDL_windowshaptic.c */ /* Global for SDL_windowshaptic.c */
#if (defined(SDL_HAPTIC_DINPUT) && SDL_HAPTIC_DINPUT) || (defined(SDL_HAPTIC_XINPUT) && SDL_HAPTIC_XINPUT) #if (defined(SDL_HAPTIC_DINPUT) && SDL_HAPTIC_DINPUT) || (defined(SDL_HAPTIC_XINPUT) && SDL_HAPTIC_XINPUT)

View File

@ -22,7 +22,6 @@
#ifdef SDL_HAPTIC_ANDROID #ifdef SDL_HAPTIC_ANDROID
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_syshaptic_c.h" #include "SDL_syshaptic_c.h"
#include "../SDL_syshaptic.h" #include "../SDL_syshaptic.h"

View File

@ -22,7 +22,6 @@
#ifdef SDL_HAPTIC_IOKIT #ifdef SDL_HAPTIC_IOKIT
#include "SDL_assert.h"
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_haptic.h" #include "SDL_haptic.h"
#include "../SDL_syshaptic.h" #include "../SDL_syshaptic.h"

View File

@ -22,7 +22,6 @@
#ifdef SDL_HAPTIC_LINUX #ifdef SDL_HAPTIC_LINUX
#include "SDL_assert.h"
#include "SDL_haptic.h" #include "SDL_haptic.h"
#include "../SDL_syshaptic.h" #include "../SDL_syshaptic.h"
#include "SDL_joystick.h" #include "SDL_joystick.h"

View File

@ -22,7 +22,6 @@
#if SDL_HAPTIC_DINPUT || SDL_HAPTIC_XINPUT #if SDL_HAPTIC_DINPUT || SDL_HAPTIC_XINPUT
#include "SDL_assert.h"
#include "SDL_thread.h" #include "SDL_thread.h"
#include "SDL_mutex.h" #include "SDL_mutex.h"
#include "SDL_timer.h" #include "SDL_timer.h"

View File

@ -26,7 +26,6 @@
#if SDL_HAPTIC_XINPUT #if SDL_HAPTIC_XINPUT
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_windowshaptic_c.h" #include "SDL_windowshaptic_c.h"

View File

@ -23,7 +23,6 @@
/* This is the game controller API for Simple DirectMedia Layer */ /* This is the game controller API for Simple DirectMedia Layer */
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_sysjoystick.h" #include "SDL_sysjoystick.h"

View File

@ -26,7 +26,6 @@
#include "SDL_atomic.h" #include "SDL_atomic.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_sysjoystick.h" #include "SDL_sysjoystick.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#if !SDL_EVENTS_DISABLED #if !SDL_EVENTS_DISABLED

View File

@ -18,7 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#ifdef SDL_JOYSTICK_ANDROID #ifdef SDL_JOYSTICK_ANDROID
@ -29,7 +28,6 @@
#include "SDL_joystick.h" #include "SDL_joystick.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_sysjoystick_c.h" #include "SDL_sysjoystick_c.h"
#include "../SDL_joystick_c.h" #include "../SDL_joystick_c.h"

View File

@ -28,7 +28,6 @@
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_joystick.h" #include "SDL_joystick.h"
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_sysjoystick_c.h" #include "SDL_sysjoystick_c.h"
#include "../SDL_joystick_c.h" #include "../SDL_joystick_c.h"

View File

@ -24,7 +24,6 @@
/* Handle rumble on a separate thread so it doesn't block the application */ /* Handle rumble on a separate thread so it doesn't block the application */
#include "SDL_assert.h"
#include "SDL_thread.h" #include "SDL_thread.h"
#include "SDL_hidapijoystick_c.h" #include "SDL_hidapijoystick_c.h"
#include "SDL_hidapi_rumble.h" #include "SDL_hidapi_rumble.h"

View File

@ -22,7 +22,6 @@
#ifdef SDL_JOYSTICK_HIDAPI #ifdef SDL_JOYSTICK_HIDAPI
#include "SDL_assert.h"
#include "SDL_atomic.h" #include "SDL_atomic.h"
#include "SDL_endian.h" #include "SDL_endian.h"
#include "SDL_hints.h" #include "SDL_hints.h"

View File

@ -21,7 +21,6 @@
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
/* This is the iOS implementation of the SDL joystick API */ /* This is the iOS implementation of the SDL joystick API */
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_joystick.h" #include "SDL_joystick.h"
#include "SDL_hints.h" #include "SDL_hints.h"

View File

@ -40,7 +40,6 @@
#include <dirent.h> #include <dirent.h>
#include <linux/joystick.h> #include <linux/joystick.h>
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_joystick.h" #include "SDL_joystick.h"
#include "SDL_log.h" #include "SDL_log.h"

View File

@ -33,7 +33,6 @@
#if SDL_JOYSTICK_RAWINPUT #if SDL_JOYSTICK_RAWINPUT
#include "SDL_assert.h"
#include "SDL_endian.h" #include "SDL_endian.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_hints.h" #include "SDL_hints.h"

View File

@ -33,7 +33,6 @@
* let it return 0 events. */ * let it return 0 events. */
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_mutex.h" #include "SDL_mutex.h"

View File

@ -24,7 +24,6 @@
#if SDL_JOYSTICK_XINPUT #if SDL_JOYSTICK_XINPUT
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_windowsjoystick_c.h" #include "SDL_windowsjoystick_c.h"

View File

@ -21,7 +21,6 @@
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "../SDL_syslocale.h" #include "../SDL_syslocale.h"
#include "SDL_assert.h"
static void static void
normalize_locale_str(char *dst, char *str, size_t buflen) normalize_locale_str(char *dst, char *str, size_t buflen)

View File

@ -22,7 +22,6 @@
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
#include "../SDL_syslocale.h" #include "../SDL_syslocale.h"
#include "SDL_assert.h"
typedef BOOL (WINAPI *pfnGetUserPreferredUILanguages)(DWORD,PULONG,/*PZZWSTR*/WCHAR*,PULONG); typedef BOOL (WINAPI *pfnGetUserPreferredUILanguages)(DWORD,PULONG,/*PZZWSTR*/WCHAR*,PULONG);
#ifndef MUI_LANGUAGE_NAME #ifndef MUI_LANGUAGE_NAME

View File

@ -27,7 +27,6 @@
#include "SDL_power.h" #include "SDL_power.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_assert.h"
#include "SDL_syspower.h" #include "SDL_syspower.h"
#if !TARGET_OS_TV #if !TARGET_OS_TV

View File

@ -22,7 +22,6 @@
/* The SDL 2D rendering system */ /* The SDL 2D rendering system */
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_render.h" #include "SDL_render.h"
#include "SDL_sysrender.h" #include "SDL_sysrender.h"

View File

@ -24,7 +24,6 @@
#if SDL_HAVE_YUV #if SDL_HAVE_YUV
#include "SDL_assert.h"
#include "SDL_yuv_sw_c.h" #include "SDL_yuv_sw_c.h"

View File

@ -30,7 +30,6 @@
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_syswm.h" #include "SDL_syswm.h"
#include "SDL_assert.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"
#include "../SDL_d3dmath.h" #include "../SDL_d3dmath.h"
#include "../../video/windows/SDL_windowsvideo.h" #include "../../video/windows/SDL_windowsvideo.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED #if SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_syswm.h" #include "SDL_syswm.h"
#include "SDL_metal.h" #include "SDL_metal.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_RENDER_OGL && !SDL_RENDER_DISABLED #if SDL_VIDEO_RENDER_OGL && !SDL_RENDER_DISABLED
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_opengl.h" #include "SDL_opengl.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"
#include "SDL_shaders_gl.h" #include "SDL_shaders_gl.h"

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_RENDER_OGL_ES && !SDL_RENDER_DISABLED #if SDL_VIDEO_RENDER_OGL_ES && !SDL_RENDER_DISABLED
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_opengles.h" #include "SDL_opengles.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED #if SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_opengles2.h" #include "SDL_opengles2.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_RENDER_PSP #if SDL_VIDEO_RENDER_PSP
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"
#include <pspkernel.h> #include <pspkernel.h>

View File

@ -25,7 +25,6 @@
#include "../SDL_sysrender.h" #include "../SDL_sysrender.h"
#include "SDL_render_sw_c.h" #include "SDL_render_sw_c.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_draw.h" #include "SDL_draw.h"
#include "SDL_blendfillrect.h" #include "SDL_blendfillrect.h"

View File

@ -26,7 +26,6 @@
#include "SDL_atomic.h" #include "SDL_atomic.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_syssensor.h" #include "SDL_syssensor.h"
#include "SDL_assert.h"
#if !SDL_EVENTS_DISABLED #if !SDL_EVENTS_DISABLED
#include "../events/SDL_events_c.h" #include "../events/SDL_events_c.h"

View File

@ -26,7 +26,6 @@
#include "../SDL_internal.h" #include "../SDL_internal.h"
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_assert.h"
#if defined(HAVE_QSORT) #if defined(HAVE_QSORT)
void void

View File

@ -22,7 +22,6 @@
/* System independent thread management routines for SDL */ /* System independent thread management routines for SDL */
#include "SDL_assert.h"
#include "SDL_thread.h" #include "SDL_thread.h"
#include "SDL_thread_c.h" #include "SDL_thread_c.h"
#include "SDL_systhread.h" #include "SDL_systhread.h"

View File

@ -18,8 +18,8 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_system.h" #include "SDL_system.h"
#include "SDL_hints.h" #include "SDL_hints.h"
@ -60,7 +60,6 @@
#include <kernel/OS.h> #include <kernel/OS.h>
#endif #endif
#include "SDL_assert.h"
#ifndef __NACL__ #ifndef __NACL__
/* List of signals to mask in the subthreads */ /* List of signals to mask in the subthreads */

View File

@ -28,7 +28,6 @@
#include <errno.h> #include <errno.h>
#include "SDL_timer.h" #include "SDL_timer.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "../SDL_timer_c.h" #include "../SDL_timer_c.h"

View File

@ -27,7 +27,6 @@
#include "SDL_cpuinfo.h" #include "SDL_cpuinfo.h"
#include "SDL_blit.h" #include "SDL_blit.h"
#include "SDL_assert.h"
/* General optimized routines that write char by char */ /* General optimized routines that write char by char */
#define HAVE_FAST_WRITE_INT8 1 #define HAVE_FAST_WRITE_INT8 1

View File

@ -34,7 +34,6 @@
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_video.h" #include "SDL_video.h"
#include "SDL_assert.h"
#include "SDL_endian.h" #include "SDL_endian.h"
#include "SDL_pixels_c.h" #include "SDL_pixels_c.h"

View File

@ -22,7 +22,6 @@
#include "SDL_rect.h" #include "SDL_rect.h"
#include "SDL_rect_c.h" #include "SDL_rect_c.h"
#include "SDL_assert.h"
SDL_bool SDL_bool
SDL_HasIntersection(const SDL_Rect * A, const SDL_Rect * B) SDL_HasIntersection(const SDL_Rect * A, const SDL_Rect * B)

View File

@ -21,7 +21,6 @@
#include "../SDL_internal.h" #include "../SDL_internal.h"
#include "SDL.h" #include "SDL.h"
#include "SDL_assert.h"
#include "SDL_video.h" #include "SDL_video.h"
#include "SDL_sysvideo.h" #include "SDL_sysvideo.h"
#include "SDL_pixels.h" #include "SDL_pixels.h"

View File

@ -30,7 +30,6 @@
#include "SDL_androidvideo.h" #include "SDL_androidvideo.h"
#include "SDL_androidwindow.h" #include "SDL_androidwindow.h"
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_androidvulkan.h" #include "SDL_androidvulkan.h"

View File

@ -26,7 +26,6 @@
#include "SDL_cocoavideo.h" #include "SDL_cocoavideo.h"
#include "../../events/SDL_events_c.h" #include "../../events/SDL_events_c.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
/* This define was added in the 10.9 SDK. */ /* This define was added in the 10.9 SDK. */

View File

@ -24,12 +24,12 @@
* Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
* how to add a CAMetalLayer backed view. * how to add a CAMetalLayer backed view.
*/ */
#include "../../SDL_internal.h"
#import "SDL_cocoametalview.h" #import "SDL_cocoametalview.h"
#if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_METAL) #if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_METAL)
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
static int SDLCALL static int SDLCALL

View File

@ -19,7 +19,6 @@
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#include "SDL_assert.h"
#if SDL_VIDEO_DRIVER_COCOA #if SDL_VIDEO_DRIVER_COCOA

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_COCOA #if SDL_VIDEO_DRIVER_COCOA
#include "SDL_assert.h"
#include "SDL_events.h" #include "SDL_events.h"
#include "SDL_cocoamouse.h" #include "SDL_cocoamouse.h"
#include "SDL_cocoamousetap.h" #include "SDL_cocoamousetap.h"

View File

@ -25,7 +25,6 @@
#include "SDL_cocoavideo.h" #include "SDL_cocoavideo.h"
#include "SDL_cocoaopengles.h" #include "SDL_cocoaopengles.h"
#include "SDL_cocoaopengl.h" #include "SDL_cocoaopengl.h"
#include "SDL_assert.h"
/* EGL implementation of SDL OpenGL support */ /* EGL implementation of SDL OpenGL support */

View File

@ -18,7 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_COCOA #if SDL_VIDEO_DRIVER_COCOA
@ -27,7 +26,6 @@
#include "SDL_shape.h" #include "SDL_shape.h"
#include "SDL_cocoashape.h" #include "SDL_cocoashape.h"
#include "../SDL_sysvideo.h" #include "../SDL_sysvideo.h"
#include "SDL_assert.h"
SDL_WindowShaper* SDL_WindowShaper*
Cocoa_CreateShaper(SDL_Window* window) Cocoa_CreateShaper(SDL_Window* window)

View File

@ -28,7 +28,6 @@
#include "SDL_cocoashape.h" #include "SDL_cocoashape.h"
#include "SDL_cocoavulkan.h" #include "SDL_cocoavulkan.h"
#include "SDL_cocoametalview.h" #include "SDL_cocoametalview.h"
#include "SDL_assert.h"
/* Initialization/Query functions */ /* Initialization/Query functions */
static int Cocoa_VideoInit(_THIS); static int Cocoa_VideoInit(_THIS);

View File

@ -29,7 +29,6 @@
#include "SDL_cocoavideo.h" #include "SDL_cocoavideo.h"
#include "SDL_cocoawindow.h" #include "SDL_cocoawindow.h"
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_cocoametalview.h" #include "SDL_cocoametalview.h"

View File

@ -41,7 +41,6 @@
#include "SDL_cocoamousetap.h" #include "SDL_cocoamousetap.h"
#include "SDL_cocoaopengl.h" #include "SDL_cocoaopengl.h"
#include "SDL_cocoaopengles.h" #include "SDL_cocoaopengles.h"
#include "SDL_assert.h"
/* #define DEBUG_COCOAWINDOW */ /* #define DEBUG_COCOAWINDOW */

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_DIRECTFB #if SDL_VIDEO_DRIVER_DIRECTFB
#include "SDL_assert.h"
#include "SDL_DirectFB_video.h" #include "SDL_DirectFB_video.h"
#include "SDL_DirectFB_mouse.h" #include "SDL_DirectFB_mouse.h"

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_DIRECTFB #if SDL_VIDEO_DRIVER_DIRECTFB
#include "SDL_assert.h"
#include "SDL_DirectFB_video.h" #include "SDL_DirectFB_video.h"
#include "SDL_DirectFB_shape.h" #include "SDL_DirectFB_shape.h"
#include "SDL_DirectFB_window.h" #include "SDL_DirectFB_window.h"

View File

@ -18,8 +18,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_EMSCRIPTEN #if SDL_VIDEO_DRIVER_EMSCRIPTEN
@ -31,7 +29,6 @@
#include "SDL_emscriptenvideo.h" #include "SDL_emscriptenvideo.h"
#include "../../events/SDL_mouse_c.h" #include "../../events/SDL_mouse_c.h"
#include "SDL_assert.h"
static SDL_Cursor* static SDL_Cursor*
Emscripten_CreateCursorFromString(const char* cursor_str, SDL_bool is_custom) Emscripten_CreateCursorFromString(const char* cursor_str, SDL_bool is_custom)

View File

@ -19,7 +19,6 @@
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
#include "../../SDL_internal.h" #include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_KMSDRM #if SDL_VIDEO_DRIVER_KMSDRM
@ -27,7 +26,6 @@
#include "SDL_kmsdrmvideo.h" #include "SDL_kmsdrmvideo.h"
#include "SDL_kmsdrmmouse.h" #include "SDL_kmsdrmmouse.h"
#include "SDL_kmsdrmdyn.h" #include "SDL_kmsdrmdyn.h"
#include "SDL_assert.h"
#include "../../events/SDL_mouse_c.h" #include "../../events/SDL_mouse_c.h"
#include "../../events/default_cursor.h" #include "../../events/default_cursor.h"

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_RPI #if SDL_VIDEO_DRIVER_RPI
#include "SDL_assert.h"
#include "SDL_surface.h" #include "SDL_surface.h"
#include "SDL_hints.h" #include "SDL_hints.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_DRIVER_UIKIT #if SDL_VIDEO_DRIVER_UIKIT
#include "../SDL_sysvideo.h" #include "../SDL_sysvideo.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "SDL_system.h" #include "SDL_system.h"
#include "SDL_main.h" #include "SDL_main.h"

View File

@ -34,7 +34,6 @@
#import "SDL_uikitwindow.h" #import "SDL_uikitwindow.h"
#import "SDL_uikitmetalview.h" #import "SDL_uikitmetalview.h"
#include "SDL_assert.h"
@implementation SDL_uikitmetalview @implementation SDL_uikitmetalview

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_UIKIT #if SDL_VIDEO_DRIVER_UIKIT
#include "SDL_assert.h"
#include "SDL_system.h" #include "SDL_system.h"
#include "SDL_uikitmodes.h" #include "SDL_uikitmodes.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_DRIVER_UIKIT #if SDL_VIDEO_DRIVER_UIKIT
#include "SDL_video.h" #include "SDL_video.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "../SDL_sysvideo.h" #include "../SDL_sysvideo.h"
#include "../../events/SDL_events_c.h" #include "../../events/SDL_events_c.h"

View File

@ -30,7 +30,6 @@
#include "SDL_uikitvideo.h" #include "SDL_uikitvideo.h"
#include "SDL_uikitwindow.h" #include "SDL_uikitwindow.h"
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_uikitvulkan.h" #include "SDL_uikitvulkan.h"

View File

@ -25,7 +25,6 @@
#include "SDL_syswm.h" #include "SDL_syswm.h"
#include "SDL_video.h" #include "SDL_video.h"
#include "SDL_mouse.h" #include "SDL_mouse.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
#include "../SDL_sysvideo.h" #include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h" #include "../SDL_pixels_c.h"

View File

@ -30,7 +30,6 @@
#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_VIVANTE #if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_VIVANTE
#include "SDL_vivantevideo.h" #include "SDL_vivantevideo.h"
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_vivantevulkan.h" #include "SDL_vivantevulkan.h"

View File

@ -29,7 +29,6 @@
#include <signal.h> #include <signal.h>
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "../../core/unix/SDL_poll.h" #include "../../core/unix/SDL_poll.h"
#include "SDL_waylandvideo.h" #include "SDL_waylandvideo.h"

View File

@ -24,7 +24,6 @@
#if SDL_VIDEO_DRIVER_WAYLAND #if SDL_VIDEO_DRIVER_WAYLAND
#include "SDL_stdinc.h" #include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_timer.h" #include "SDL_timer.h"
#include "../../core/unix/SDL_poll.h" #include "../../core/unix/SDL_poll.h"

View File

@ -40,7 +40,6 @@
#include "SDL_waylanddyn.h" #include "SDL_waylanddyn.h"
#include "wayland-cursor.h" #include "wayland-cursor.h"
#include "SDL_assert.h"
typedef struct { typedef struct {

View File

@ -30,7 +30,6 @@
#include "SDL_waylandvideo.h" #include "SDL_waylandvideo.h"
#include "SDL_waylandwindow.h" #include "SDL_waylandwindow.h"
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_waylandvulkan.h" #include "SDL_waylandvulkan.h"

View File

@ -32,7 +32,6 @@
#include "../../events/SDL_events_c.h" #include "../../events/SDL_events_c.h"
#include "../../events/SDL_touch_c.h" #include "../../events/SDL_touch_c.h"
#include "../../events/scancodes_windows.h" #include "../../events/scancodes_windows.h"
#include "SDL_assert.h"
#include "SDL_hints.h" #include "SDL_hints.h"
/* Dropfile support */ /* Dropfile support */

View File

@ -31,7 +31,6 @@
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
#include "SDL_assert.h"
#include "SDL_windowsvideo.h" #include "SDL_windowsvideo.h"
#include "SDL_windowstaskdialog.h" #include "SDL_windowstaskdialog.h"

View File

@ -23,7 +23,6 @@
#if SDL_VIDEO_DRIVER_WINDOWS #if SDL_VIDEO_DRIVER_WINDOWS
#include "SDL_windowsvideo.h" #include "SDL_windowsvideo.h"
#include "../../../include/SDL_assert.h"
/* Windows CE compatibility */ /* Windows CE compatibility */
#ifndef CDS_FULLSCREEN #ifndef CDS_FULLSCREEN

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_WINDOWS #if SDL_VIDEO_DRIVER_WINDOWS
#include "SDL_assert.h"
#include "SDL_windowsvideo.h" #include "SDL_windowsvideo.h"
#include "../../events/SDL_mouse_c.h" #include "../../events/SDL_mouse_c.h"

View File

@ -22,7 +22,6 @@
#if SDL_VIDEO_DRIVER_WINDOWS #if SDL_VIDEO_DRIVER_WINDOWS
#include "SDL_assert.h"
#include "SDL_loadso.h" #include "SDL_loadso.h"
#include "SDL_windowsvideo.h" #include "SDL_windowsvideo.h"
#include "SDL_windowsopengles.h" #include "SDL_windowsopengles.h"

View File

@ -25,7 +25,6 @@
#include "SDL_windowsvideo.h" #include "SDL_windowsvideo.h"
#include "SDL_windowsopengles.h" #include "SDL_windowsopengles.h"
#include "SDL_windowsopengl.h" #include "SDL_windowsopengl.h"
#include "SDL_assert.h"
/* EGL implementation of SDL OpenGL support */ /* EGL implementation of SDL OpenGL support */

Some files were not shown because too many files have changed in this diff Show More