From 3472dc11d6f7d22055d185724853c4dfcc0e3967 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 29 Mar 2023 21:49:01 +0000
Subject: [PATCH] Fix uses of undefined macro identifiers (-Wundef)
* Fix -Wundef warnings due to use of unguarded SDL_LOADSO_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WINDOWS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_ANDROID
* Fix -Wundef warnings due to use of unguarded SDL_LOADSO_DUMMY
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_COCOA
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_UIKIT
* Fix -Wundef warnings due to use of unguarded SDL_TIMERS_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_EVENTS_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_TIMER_DUMMY
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_SENSOR_DISABLED
* Fix -Wundef warnings due to use of unguarded __ANDROID__
* Fix -Wundef warnings due to use of unguarded __IOS__
* Fix -Wundef warnings due to use of unguarded EMULATE_CAS
* Fix -Wundef warnings due to use of unguarded SDL_ATOMIC_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_THREADS_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_SNDIO
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_NETBSD
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_WASAPI
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_DSOUND
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_HAIKU
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_COREAUDIO
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_AAUDIO
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_OPENSLES
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_ANDROID
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_PS2
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_PSP
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_VITA
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_N3DS
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_EMSCRIPTEN
* Fix -Wundef warnings due to use of unguarded SDL_NEON_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_ALTIVEC_BLITTERS
* Fix -Wundef warnings due to use of unguarded __VITA__
* Fix -Wundef warnings due to use of unguarded __3DS__
* Fix -Wundef warnings due to use of unguarded SDL_DYNAPI_PROC_NO_VARARGS
* Fix -Wundef warnings due to use of unguarded __APPLE__
* Fix -Wundef warnings due to use of unguarded __WINRT__
* Fix -Wundef warnings due to use of unguarded SDL_HIDAPI_DISABLED
* Fix -Wundef warnings due to use of unguarded __TVOS__
* Fix -Wundef warnings due to use of unguarded HAVE_DRIVER_BACKEND
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_XINPUT
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_WGI
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_DINPUT
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_MFI
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_EMSCRIPTEN
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_PS2
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_PSP
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_VITA
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_N3DS
* Fix -Wundef warnings due to use of unguarded __MACOS__
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_D3D
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WINRT
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_RPI
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_VITA_PVR_OGL
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_VIVANTE
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_D3D11
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_D3D12
* Fix -Wundef warnings due to use of unguarded SDL_RENDER_DISABLED
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_METAL
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_PS2
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_PSP
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_VITA_GXM
* Fix -Wundef warnings due to use of unguarded SDL_ARM_SIMD_BLITTERS
* Fix -Wundef warnings due to use of unguarded SDL_ARM_NEON_BLITTERS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_HAIKU
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_PS2
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_PSP
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_VITA
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_N3DS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_KMSDRM
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_RISCOS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_EMSCRIPTEN
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_NGAGE
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_METAL
* Fix -Wundef warnings due to use of unguarded SDL_LSX_INTRINSICS
* Fix -Wundef warnings due to use of unguarded HAVE_PTHREAD_NP_H
* Fix -Wundef warnings due to use of unguarded __RISCOS__
* Fix -Wundef warnings due to use of unguarded FAKE_RECURSIVE_MUTEX
* Fix -Wundef warnings due to use of unguarded USE_POSIX_SPAWN
* textureData is only needed when SDL is built with YUV support
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_ALSA
* Fix -Wundef warnings due to use of unguarded SDL_SSE3_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_SSE4_2_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_SSE4_1_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_AVX512F_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_SSE2_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_AVX_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_AVX2_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_SSE_INTRINSICS
* Fix -Wundef warnings due to use of unguarded SDL_MMX_INTRINSICS
* Fix -Wundef warnings due to use of unguarded HAVE_CLOCK_GETTIME
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_DISK
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_DUMMY
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_DUMMY
* Fix -Wundef warnings due to use of unguarded HAVE_GCC_ATOMICS
* Fix -Wundef warnings due to use of unguarded HAVE_GCC_SYNC_LOCK_TEST_AND_SET
* Fix -Wundef warnings due to use of unguarded SDL_USE_LIBDBUS
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_JACK
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_VIRTUAL
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_LINUX
* Fix -Wundef warnings due to use of unguarded HAVE_LIBC
* Fix -Wundef warnings due to disabling SDL_LIBC
* Fix -Wundef warnings due to use of unguarded HAVE_PLATFORM_BACKEND
* Fix -Wundef warnings due to use of unguarded DEBUG
* Fix -Wundef warnings due to use of unguarded HAVE_LINUX_INPUT_H
* Fix -Werror=unused-variable when building with SDL_LIBC=OFF
* Fix -Wundef warnings due to use of unguqrded SDL_USE_LIBUDEV
* Use SDL alloc functions in libusb/hid.c
* Fix -Wundef warnings due to use of unguarded HAVE_LIBUDEV_H
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_VULKAN
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_OFFSCREEN
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_OGL
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_GLX
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_ES
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_ES2
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_OGL_ES2
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_OSS
* Remove SDL_AUDIO_DRIVER_SUNAUDIO reference since it is never set
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_PIPEWIRE
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_PULSEAUDIO
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_XCURSOR
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_XDBE
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_XFIXES
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_XINPUT2
* Fix -Wundef warnings due to use of unguarded #if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
* Fix -Wundef warnings due to use of unguarded #if SDL_VIDEO_DRIVER_X11_XRANDR
* Fix -Wundef warnings due to use of unguarded #if SDL_VIDEO_DRIVER_X11_XSCRNSAVER
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_XSHAPE
* Don't call XShape functions when XShape is diabled
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WAYLAND
* Fix -Wundef warnings due to use of unuarded SDL_VIDEO_DRIVER_X11
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_RISCOS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_EGL
* Disable array when compiled with SDL_EVENTS=OFF
* Fix -Wundef warnings due to use of unguarded SDL_INPUT_LINUXEV
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_PTHREAD
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_WINDOWS
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_PS2
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_PSP
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_VITA
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_N3DS
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_STDCPP
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_NGAGE
* Fix -Wundef warnings due to use of unguarded __WINDOWS__
* Fix -Wundef warnings due to use of unguarded __WINGDK__
* Fix -Wundef warnings due to use of unguarded __ANDROID__
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_GENERIC_COND_SUFFIX
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_VITA_PIB
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_VITA_PVR
* Fix -Wundef warnings due to use of unguarded SDL_FILE_DISABLED
* Fix -Wundef warnings due to use of unguarded __XBOXONE__
* Fix -Wundef warnings due to use of unguarded __XBOXSERIES__
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_WGL
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_QNX
* Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_DISK
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_QNX
* Fix -Wundef warnings due to use of unguarded DEBUG_RAZOR
* Fix -Wundef warnings due to use of unguarded WINAPI_FAMILY_PHONE_APP
* Fix -Wundef warnings due to use of unguarded SDL_MAC_NO_SANDBOX
* Fix -Wundef warnings due to use of unguarded __(IPHONE|APPLETV|MAC)_OS_VERSION_MAX_ALLOWED
* Fix C4090 warning ('function': different 'const' qualifiers)
* ci: use -isystem for include dirs of pspdev toolchain
* cmake: add -Wundef option
* Fix remaining -Wundef warnings due to use of unguarded SDL_VIDEO_VULKAN and SDL_VIDEO_METAL
* Fix -Wundef warnings due to use of unguarded __MACOS__
* DEBUG_CONVERT is guaranteed to be defined in src/audio/SDL_audiocvt.c
* Fix -Wundef warnings due to use of unguarded HAVE_NANOSLEEP
* Fix -Wundef warnings due to use of unguarded HAVE_DXGI_H
* Fix -Wundef warnings due to use of unguarded HAVE_LINUX_INPUT_H
* fix SDL_VIDEO_DRIVER_WAYLAND
* fix SDL_VIDEO_DRIVER_X11
* Fix -Wundef warnings due to use of unguarded HAVE_MMDEVICEAPI_H
* Fix -Wundef warnings due to use of unguarded HAVE_PTHREAD_SETNAME_NP
* Fix -Wundef warnings due to use of unguarded HAVE_PTHREAD_SET_NAME_NP
* Fix -Wundef warnings due to use of unguarded HAVE_SETJMP
* Fix -Wundef warnings due to use of unguarded HAVE_SIGNAL_H
* Fix -Wundef warnings due to use of unguarded HAVE_TPCSHRD_H
* Fix -Wundef warnings due to use of unguarded MACOSX_COREAUDIO
* Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DINPUT
* Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_IOKIT
* Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_XINPUT
* Fix -Wundef warnings due to use of unguarded SDL_IPHONE_KEYBOARD
* Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_RAWINPUT
* Fix -Wundef warnings due to use of unguarded SDL_POWER_ANDROID
* Fix -Wundef warnings due to use of unguarded SDL_POWER_EMSCRIPTEN
* Fix -Wundef warnings due to use of unguarded SDL_POWER_HAIKU
* Fix -Wundef warnings due to use of unguarded SDL_POWER_LINUX
* Fix -Wundef warnings due to use of unguarded SDL_POWER_MACOSX
* Fix -Wundef warnings due to use of unguarded SDL_POWER_PSP
* Fix -Wundef warnings due to use of unguarded SDL_POWER_UIKIT
* Fix -Wundef warnings due to use of unguarded SDL_POWER_VITA
* Fix -Wundef warnings due to use of unguarded SDL_POWER_WINDOWS
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
* Fix -Wundef warnings due to use of unguarded SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_VIVANTE_VDK
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WAYLAND
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_CGL
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_EGL
* Fix -Wundef warnings due to use of unguarded __MACOS__
* Fix -Wundef warnings due to use of unguarded __OpenBSD__
* Fix -Wundef warnings due to use of unguarded __FreeBSD__
* Fix -Wundef warnings due to use of unguarded __MWERKS__
* Fix -Wundef warnings due to use of unguarded __WIN32__
* Fix -Wundef warnings due to use of unguarded SDL_IPHONE_LAUNCHSCREEN
* Fix -Wundef warnings due to use of unguarded SDL_VIDEO_OPENGL_ES2
* Remove unused HAVE_CONST, HAVE_INLINE and HAVE_VOLATILE
* Revert "Use SDL alloc functions in libusb/hid.c"
This reverts commit 847c64b00da12ca08bef9e947eb948e378eeaef8.
* Handle FAKE_RECURSIVE_MUTEX in similar way as SDL2
* Don't use defined in macro
---
.github/workflows/psp.yml | 4 +
CMakeLists.txt | 16 +-
cmake/sdlchecks.cmake | 3 +-
include/SDL3/SDL_platform_defines.h | 6 +
include/build_config/SDL_build_config.h.cmake | 7 +-
include/build_config/SDL_build_config_winrt.h | 8 +-
src/SDL.c | 50 +++---
src/SDL_log.c | 4 +-
src/atomic/SDL_atomic.c | 6 +-
src/atomic/SDL_spinlock.c | 6 +-
src/audio/SDL_audio.c | 54 +++---
src/audio/SDL_audiocvt.c | 12 +-
src/audio/SDL_audiodev.c | 2 +-
src/audio/SDL_audiotypecvt.c | 19 +--
src/audio/aaudio/SDL_aaudio.c | 2 +-
src/audio/alsa/SDL_alsa_audio.c | 2 +-
src/audio/android/SDL_androidaudio.c | 2 +-
src/audio/coreaudio/SDL_coreaudio.h | 8 +-
src/audio/coreaudio/SDL_coreaudio.m | 32 ++--
src/audio/directsound/SDL_directsound.c | 16 +-
src/audio/disk/SDL_diskaudio.c | 4 +-
src/audio/dsp/SDL_dspaudio.c | 2 +-
src/audio/emscripten/SDL_emscriptenaudio.c | 2 +-
src/audio/haiku/SDL_haikuaudio.cc | 2 +-
src/audio/jack/SDL_jackaudio.c | 2 +-
src/audio/netbsd/SDL_netbsdaudio.c | 2 +-
src/audio/openslES/SDL_openslES.c | 2 +-
src/audio/pipewire/SDL_pipewire.c | 2 +-
src/audio/psp/SDL_pspaudio.c | 2 +-
src/audio/pulseaudio/SDL_pulseaudio.c | 2 +-
src/audio/qnx/SDL_qsa_audio.c | 2 +-
src/audio/sndio/SDL_sndioaudio.c | 4 +-
src/audio/vita/SDL_vitaaudio.c | 2 +-
src/audio/wasapi/SDL_wasapi.c | 2 +-
src/audio/wasapi/SDL_wasapi_win32.c | 2 +-
src/audio/wasapi/SDL_wasapi_winrt.cpp | 2 +-
src/core/android/SDL_android.c | 4 +-
src/core/haiku/SDL_BApp.h | 8 +-
src/core/linux/SDL_dbus.c | 2 +-
src/core/linux/SDL_evdev.c | 10 +-
src/core/linux/SDL_evdev_capabilities.c | 2 +-
src/core/linux/SDL_evdev_capabilities.h | 2 +-
src/core/linux/SDL_ibus.c | 5 +
src/core/linux/SDL_threadprio.c | 12 +-
src/core/linux/SDL_udev.h | 2 +-
src/core/winrt/SDL_winrtapp_direct3d.cpp | 20 +--
src/core/winrt/SDL_winrtapp_direct3d.h | 2 +-
src/core/winrt/SDL_winrtapp_xaml.cpp | 4 +-
src/cpuinfo/SDL_cpuinfo.c | 10 +-
src/dynapi/SDL_dynapi.c | 5 +-
src/dynapi/SDL_dynapi_procs.h | 2 +-
src/events/SDL_events.c | 28 ++--
src/events/SDL_keysym_to_scancode.c | 2 +-
src/events/SDL_quit.c | 4 +-
src/events/SDL_scancode_tables.c | 2 +-
src/events/imKStoUCS.c | 2 +-
src/file/SDL_rwops.c | 8 +-
src/filesystem/winrt/SDL_sysfilesystem.cpp | 2 +-
src/haptic/linux/SDL_syshaptic.c | 10 +-
src/haptic/windows/SDL_dinputhaptic.c | 2 +-
src/haptic/windows/SDL_windowshaptic.c | 8 +-
src/haptic/windows/SDL_windowshaptic_c.h | 10 +-
src/haptic/windows/SDL_xinputhaptic.c | 2 +-
src/hidapi/SDL_hidapi.c | 58 +++----
src/hidapi/android/hid.cpp | 6 +-
src/hidapi/hidapi/hidapi.h | 2 +-
src/hidapi/ios/hid.m | 62 +++----
src/joystick/SDL_gamepad.c | 14 +-
src/joystick/SDL_gamepad_db.h | 20 +--
src/joystick/SDL_joystick.c | 42 ++---
src/joystick/apple/SDL_mfijoystick.m | 16 +-
src/joystick/darwin/SDL_iokitjoystick.c | 4 +-
src/joystick/linux/SDL_sysjoystick.c | 10 +-
src/joystick/ps2/SDL_sysjoystick.c | 2 +-
src/joystick/psp/SDL_sysjoystick.c | 2 +-
src/joystick/virtual/SDL_virtualjoystick_c.h | 2 +-
src/joystick/vita/SDL_sysjoystick.c | 2 +-
src/joystick/windows/SDL_dinputjoystick.c | 2 +-
src/joystick/windows/SDL_rawinputjoystick.c | 2 +-
src/joystick/windows/SDL_windowsjoystick.c | 22 +--
src/joystick/windows/SDL_windowsjoystick_c.h | 4 +-
src/joystick/windows/SDL_xinputjoystick.c | 2 +-
src/loadso/dlopen/SDL_sysloadso.c | 4 +-
src/locale/winrt/SDL_syslocale.c | 2 +-
src/misc/unix/SDL_sysurl.c | 4 +-
src/power/android/SDL_syspower.c | 2 +-
src/power/emscripten/SDL_syspower.c | 2 +-
src/power/haiku/SDL_syspower.c | 2 +-
src/power/linux/SDL_syspower.c | 6 +-
src/power/macos/SDL_syspower.c | 2 +-
src/power/psp/SDL_syspower.c | 2 +-
src/power/uikit/SDL_syspower.h | 2 +-
src/power/uikit/SDL_syspower.m | 2 +-
src/power/vita/SDL_syspower.c | 2 +-
src/power/windows/SDL_syspower.c | 2 +-
src/render/SDL_d3dmath.c | 4 +-
src/render/SDL_d3dmath.h | 4 +-
src/render/SDL_render.c | 30 ++--
src/render/direct3d/SDL_render_d3d.c | 6 +-
src/render/direct3d/SDL_shaders_d3d.c | 2 +-
src/render/direct3d11/SDL_render_d3d11.c | 16 +-
src/render/direct3d11/SDL_render_winrt.cpp | 6 +-
src/render/direct3d11/SDL_render_winrt.h | 2 +-
src/render/direct3d11/SDL_shaders_d3d11.c | 4 +-
src/render/direct3d12/SDL_render_d3d12.c | 4 +-
.../direct3d12/SDL_render_d3d12_xbox.cpp | 2 +-
src/render/direct3d12/SDL_shaders_d3d12.c | 2 +-
.../direct3d12/SDL_shaders_d3d12_xboxone.cpp | 2 +-
.../SDL_shaders_d3d12_xboxseries.cpp | 2 +-
src/render/metal/SDL_render_metal.m | 2 +-
src/render/opengl/SDL_render_gl.c | 6 +-
src/render/opengl/SDL_shaders_gl.c | 2 +-
src/render/opengles2/SDL_render_gles2.c | 10 +-
src/render/opengles2/SDL_shaders_gles2.c | 2 +-
src/render/opengles2/SDL_shaders_gles2.h | 2 +-
src/render/ps2/SDL_render_ps2.c | 2 +-
src/render/psp/SDL_render_psp.c | 2 +-
src/render/software/SDL_blendfillrect.c | 2 +-
src/render/software/SDL_blendline.c | 2 +-
src/render/software/SDL_blendpoint.c | 2 +-
src/render/software/SDL_drawline.c | 2 +-
src/render/software/SDL_drawpoint.c | 2 +-
src/render/software/SDL_render_sw.c | 2 +-
src/render/software/SDL_rotate.c | 2 +-
src/render/software/SDL_triangle.c | 2 +-
src/render/vitagxm/SDL_render_vita_gxm.c | 8 +-
.../vitagxm/SDL_render_vita_gxm_memory.c | 2 +-
.../vitagxm/SDL_render_vita_gxm_tools.c | 2 +-
src/sensor/SDL_sensor.c | 8 +-
src/stdlib/SDL_malloc.c | 20 +--
src/test/SDL_test_common.c | 4 +-
src/thread/SDL_thread.c | 8 +-
src/thread/SDL_thread_c.h | 18 +-
src/thread/generic/SDL_syscond.c | 2 +-
src/thread/generic/SDL_syscond_c.h | 2 +-
src/thread/generic/SDL_sysmutex.c | 8 +-
src/thread/generic/SDL_syssem.c | 2 +-
src/thread/ngage/SDL_systhread.cpp | 2 +-
src/thread/ps2/SDL_syssem.c | 2 +-
src/thread/ps2/SDL_systhread.c | 2 +-
src/thread/psp/SDL_syscond.c | 2 +-
src/thread/psp/SDL_sysmutex.c | 8 +-
src/thread/psp/SDL_syssem.c | 2 +-
src/thread/psp/SDL_systhread.c | 2 +-
src/thread/pthread/SDL_sysmutex.c | 23 +--
src/thread/pthread/SDL_systhread.c | 10 +-
src/thread/vita/SDL_syscond.c | 2 +-
src/thread/vita/SDL_sysmutex.c | 8 +-
src/thread/vita/SDL_syssem.c | 2 +-
src/thread/vita/SDL_systhread.c | 2 +-
src/thread/windows/SDL_syscond_cv.c | 4 +-
src/thread/windows/SDL_sysmutex.c | 8 +-
src/thread/windows/SDL_syssem.c | 14 +-
src/thread/windows/SDL_systhread.c | 2 +-
src/thread/windows/SDL_systls.c | 2 +-
src/timer/SDL_timer.c | 2 +-
src/timer/unix/SDL_systimer.c | 16 +-
src/video/SDL_blit_A.c | 26 +--
src/video/SDL_blit_N.c | 16 +-
src/video/SDL_blit_copy.c | 8 +-
src/video/SDL_egl.c | 40 ++---
src/video/SDL_egl_c.h | 2 +-
src/video/SDL_fillrect.c | 16 +-
src/video/SDL_stretch.c | 4 +-
src/video/SDL_sysvideo.h | 4 +-
src/video/SDL_video.c | 154 +++++++++---------
src/video/SDL_vulkan_internal.h | 16 +-
src/video/SDL_vulkan_utils.c | 2 +-
src/video/SDL_yuv.c | 44 ++---
src/video/android/SDL_androidclipboard.c | 2 +-
src/video/android/SDL_androidevents.c | 18 +-
src/video/android/SDL_androidgl.c | 2 +-
src/video/android/SDL_androidkeyboard.c | 2 +-
src/video/android/SDL_androidmessagebox.c | 2 +-
src/video/android/SDL_androidmessagebox.h | 2 +-
src/video/android/SDL_androidmouse.c | 2 +-
src/video/android/SDL_androidtouch.c | 2 +-
src/video/android/SDL_androidvideo.c | 6 +-
src/video/android/SDL_androidvulkan.c | 2 +-
src/video/android/SDL_androidvulkan.h | 2 +-
src/video/android/SDL_androidwindow.c | 8 +-
src/video/android/SDL_androidwindow.h | 2 +-
src/video/cocoa/SDL_cocoaclipboard.m | 2 +-
src/video/cocoa/SDL_cocoaevents.m | 14 +-
src/video/cocoa/SDL_cocoakeyboard.m | 4 +-
src/video/cocoa/SDL_cocoamessagebox.h | 2 +-
src/video/cocoa/SDL_cocoamessagebox.m | 2 +-
src/video/cocoa/SDL_cocoametalview.h | 2 +-
src/video/cocoa/SDL_cocoametalview.m | 2 +-
src/video/cocoa/SDL_cocoamodes.m | 2 +-
src/video/cocoa/SDL_cocoamouse.m | 2 +-
src/video/cocoa/SDL_cocoaopengl.h | 2 +-
src/video/cocoa/SDL_cocoaopengl.m | 4 +-
src/video/cocoa/SDL_cocoaopengles.h | 2 +-
src/video/cocoa/SDL_cocoaopengles.m | 6 +-
src/video/cocoa/SDL_cocoashape.m | 2 +-
src/video/cocoa/SDL_cocoavideo.m | 14 +-
src/video/cocoa/SDL_cocoavulkan.h | 2 +-
src/video/cocoa/SDL_cocoavulkan.m | 2 +-
src/video/cocoa/SDL_cocoawindow.h | 4 +-
src/video/cocoa/SDL_cocoawindow.m | 18 +-
src/video/dummy/SDL_nullevents.c | 2 +-
src/video/dummy/SDL_nullframebuffer.c | 2 +-
src/video/dummy/SDL_nullvideo.c | 14 +-
src/video/emscripten/SDL_emscriptenevents.c | 2 +-
.../emscripten/SDL_emscriptenframebuffer.c | 2 +-
src/video/emscripten/SDL_emscriptenmouse.c | 2 +-
src/video/emscripten/SDL_emscriptenopengles.c | 2 +-
src/video/emscripten/SDL_emscriptenopengles.h | 2 +-
src/video/emscripten/SDL_emscriptenvideo.c | 2 +-
src/video/haiku/SDL_BApp.h | 8 +-
src/video/haiku/SDL_BWin.h | 12 +-
src/video/haiku/SDL_bclipboard.cc | 12 +-
src/video/haiku/SDL_bevents.cc | 2 +-
src/video/haiku/SDL_bframebuffer.cc | 2 +-
src/video/haiku/SDL_bkeyboard.cc | 2 +-
src/video/haiku/SDL_bmessagebox.cc | 2 +-
src/video/haiku/SDL_bmessagebox.h | 2 +-
src/video/haiku/SDL_bmodes.cc | 6 +-
src/video/haiku/SDL_bopengl.cc | 2 +-
src/video/haiku/SDL_bopengl.h | 2 +-
src/video/haiku/SDL_bvideo.cc | 6 +-
src/video/haiku/SDL_bwindow.cc | 2 +-
src/video/kmsdrm/SDL_kmsdrmdyn.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmevents.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmmouse.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmopengles.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmopengles.h | 2 +-
src/video/kmsdrm/SDL_kmsdrmvideo.c | 4 +-
src/video/kmsdrm/SDL_kmsdrmvulkan.c | 2 +-
src/video/kmsdrm/SDL_kmsdrmvulkan.h | 2 +-
src/video/ngage/SDL_ngageevents.cpp | 2 +-
src/video/ngage/SDL_ngageframebuffer.cpp | 2 +-
src/video/ngage/SDL_ngagevideo.cpp | 2 +-
src/video/ngage/SDL_ngagewindow.cpp | 2 +-
src/video/offscreen/SDL_offscreenevents.c | 2 +-
.../offscreen/SDL_offscreenframebuffer.c | 2 +-
src/video/offscreen/SDL_offscreenopengles.c | 2 +-
src/video/offscreen/SDL_offscreenopengles.h | 2 +-
src/video/offscreen/SDL_offscreenvideo.c | 4 +-
src/video/offscreen/SDL_offscreenwindow.c | 6 +-
src/video/offscreen/SDL_offscreenwindow.h | 2 +-
src/video/ps2/SDL_ps2video.c | 2 +-
src/video/psp/SDL_pspevents.c | 2 +-
src/video/psp/SDL_pspgl.c | 2 +-
src/video/psp/SDL_pspmouse.c | 2 +-
src/video/psp/SDL_pspvideo.c | 2 +-
src/video/raspberry/SDL_rpievents.c | 2 +-
src/video/raspberry/SDL_rpimouse.c | 2 +-
src/video/raspberry/SDL_rpiopengles.c | 2 +-
src/video/raspberry/SDL_rpiopengles.h | 2 +-
src/video/raspberry/SDL_rpivideo.c | 4 +-
src/video/raspberry/SDL_rpivideo.h | 2 +-
src/video/riscos/SDL_riscosevents.c | 2 +-
src/video/riscos/SDL_riscosframebuffer.c | 2 +-
src/video/riscos/SDL_riscosmessagebox.c | 2 +-
src/video/riscos/SDL_riscosmessagebox.h | 2 +-
src/video/riscos/SDL_riscosmodes.c | 2 +-
src/video/riscos/SDL_riscosmouse.c | 2 +-
src/video/riscos/SDL_riscosvideo.c | 2 +-
src/video/riscos/SDL_riscoswindow.c | 2 +-
src/video/uikit/SDL_uikitappdelegate.m | 4 +-
src/video/uikit/SDL_uikitclipboard.m | 2 +-
src/video/uikit/SDL_uikitevents.m | 4 +-
src/video/uikit/SDL_uikitmessagebox.h | 2 +-
src/video/uikit/SDL_uikitmessagebox.m | 2 +-
src/video/uikit/SDL_uikitmetalview.h | 2 +-
src/video/uikit/SDL_uikitmetalview.m | 2 +-
src/video/uikit/SDL_uikitmodes.m | 2 +-
src/video/uikit/SDL_uikitopengles.h | 2 +-
src/video/uikit/SDL_uikitopengles.m | 4 +-
src/video/uikit/SDL_uikitopenglview.h | 2 +-
src/video/uikit/SDL_uikitopenglview.m | 2 +-
src/video/uikit/SDL_uikitvideo.m | 10 +-
src/video/uikit/SDL_uikitview.m | 8 +-
src/video/uikit/SDL_uikitviewcontroller.h | 6 +-
src/video/uikit/SDL_uikitviewcontroller.m | 14 +-
src/video/uikit/SDL_uikitvulkan.h | 2 +-
src/video/uikit/SDL_uikitvulkan.m | 2 +-
src/video/uikit/SDL_uikitwindow.m | 4 +-
src/video/vita/SDL_vitaframebuffer.c | 2 +-
src/video/vita/SDL_vitagl_pvr.c | 2 +-
src/video/vita/SDL_vitagles.c | 2 +-
src/video/vita/SDL_vitagles_pvr.c | 2 +-
src/video/vita/SDL_vitakeyboard.c | 2 +-
src/video/vita/SDL_vitamessagebox.c | 6 +-
src/video/vita/SDL_vitamessagebox.h | 2 +-
src/video/vita/SDL_vitamouse.c | 2 +-
src/video/vita/SDL_vitatouch.c | 2 +-
src/video/vita/SDL_vitavideo.c | 6 +-
src/video/vita/SDL_vitavideo.h | 2 +-
src/video/vivante/SDL_vivanteopengles.c | 2 +-
src/video/vivante/SDL_vivanteopengles.h | 2 +-
src/video/vivante/SDL_vivanteplatform.c | 2 +-
src/video/vivante/SDL_vivanteplatform.h | 2 +-
src/video/vivante/SDL_vivantevideo.c | 26 +--
src/video/vivante/SDL_vivantevideo.h | 4 +-
src/video/vivante/SDL_vivantevulkan.c | 2 +-
src/video/vivante/SDL_vivantevulkan.h | 2 +-
src/video/wayland/SDL_waylandclipboard.c | 2 +-
src/video/wayland/SDL_waylanddatamanager.c | 6 +-
src/video/wayland/SDL_waylanddyn.c | 2 +-
src/video/wayland/SDL_way
(Patch may be truncated, please check the link at the top of this post.)