SDL/build-scripts
Ryan C. Gordon 1e8b006d43 stdlib: qsort and bsearch changes.
- Always use internal qsort and bsearch implementation.
- add "_r" reentrant versions.

The reasons for always using the internal versions is that the C runtime
versions' callbacks are not mark STDCALL, so we would have add bridge
functions for them anyhow, The C runtime qsort_r/qsort_s have different
orders of arguments on different platforms, and most importantly: qsort()
isn't a stable sort, and isn't guaranteed to give the same ordering for
two objects marked as equal by the callback...as such, Visual Studio and
glibc can give different sort results for the same data set...in this
sense, having one piece of code shared on all platforms makes sense here,
for reliabillity.

bsearch does not have a standard _r version at all, and suffers from the
same SDLCALL concern. Since the code is simple and we would have to work
around the C runtime, it's easier to just go with the built-in function
and remove all the CMake C runtime tests.

Fixes #9159.
2024-03-01 08:28:12 -05:00
..
SDL_migration.cocci Renamed SDL_HINT_PS2_DYNAMIC_VSYNC SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC 2024-02-12 09:54:33 -08:00
add-source-to-projects.pl add-source-to-projects.pl: Fix adding files in the base src dir. 2023-10-09 19:19:01 -04:00
android-prefab.sh cmake: no more SDL3_* cache variables 2023-01-31 01:59:21 +01:00
androidbuild.sh Updated Android build tools version, which bumped minimum deployment target to API 14 2017-10-23 23:23:47 -07:00
androidbuildlibs.sh Allow specifying APP_PLATFORM and APP_ABI on the command line 2023-06-21 13:49:09 -07:00
check_stdlib_usage.py stdlib: qsort and bsearch changes. 2024-03-01 08:28:12 -05:00
clang-format-src.sh Update for SDL3 coding style (#6717) 2022-11-30 12:51:59 -08:00
cmake-toolchain-mingw64-i686.cmake Fix broken mingw i686 buildscript 2024-01-28 17:29:33 -08:00
cmake-toolchain-mingw64-x86_64.cmake Fix broken mingw x86_64 buildscript 2024-01-28 17:29:33 -08:00
cmake-toolchain-qnx-aarch64le.cmake Do not look at local headers when determining features 2023-03-27 15:33:08 -07:00
cmake-toolchain-qnx-x86_64.cmake Do not look at local headers when determining features 2023-03-27 15:33:08 -07:00
codechecker-buildbot.sh cmake: Prefix all options with "SDL_" 2021-10-05 10:45:26 -04:00
fnsince.pl Unify all the SDL_*RunApp() functions into just SDL_RunApp() 2022-12-15 08:01:01 -08:00
gen_audio_channel_conversion.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
gen_audio_resampler_filter.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
git-pre-push-hook.pl Remove some vim config lines 2023-02-10 11:00:48 +01:00
mkinstalldirs build-scripts: update install-sh and mkinstalldirs from automake-1.16.3 2020-12-24 01:32:10 +03:00
rename_api.py Added migration notes for migrating Steam Input support from SDL2 to SDL3 2023-12-20 14:15:09 -08:00
rename_headers.py Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
rename_macros.py Only retain SDL_* + platform macro's in rename_macros.py 2024-01-26 18:05:49 +01:00
rename_symbols.py Added "--substring" to the help for rename_symbols.py 2023-10-23 09:14:54 -07:00
showrev.sh Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
strip_fPIC.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
test-versioning.sh cmake: pass VERSION to project() + don't use SDL_VERSION 2023-01-31 01:59:21 +01:00
update-copyright.sh Use GNU sed if available 2023-02-06 15:47:16 -08:00
update-version.sh cmake: pass VERSION to project() + don't use SDL_VERSION 2023-01-31 01:59:21 +01:00
updaterev.sh Switch header convention from `#include "SDL.h"` to `#include <SDL3/SDLh>` 2022-11-26 22:15:18 -08:00
wikiheaders.pl wikiheaders.pl: README files are no longer in Windows endline format. 2023-11-30 10:10:04 -05:00