update SDL3 from 3.2.20 to 3.4.2

This commit is contained in:
Sven Balzer
2026-04-01 18:25:03 +02:00
parent 1daf4d79f1
commit 05b19704f8
1626 changed files with 124218 additions and 191491 deletions
+11 -2
View File
@@ -1,5 +1,5 @@
/*
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2026 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
@@ -33,9 +33,18 @@ int main(int argc, char *argv[])
SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION,
SDL_REVISION);
int version = SDL_GetVersion();
const char *revision = SDL_GetRevision();
SDL_Log("Runtime version: %d.%d.%d (%s)",
SDL_VERSIONNUM_MAJOR(version), SDL_VERSIONNUM_MINOR(version), SDL_VERSIONNUM_MICRO(version),
SDL_GetRevision());
revision);
/* This is not an API guarantee, but we try to make sure it's true,
* so that the version number can be extracted while debugging with:
* strings libSDL3.so.0 | grep SDL-
*/
if (SDL_strncmp(revision, "SDL-", 4) != 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Revision should start with SDL-");
return 1;
}
SDL_Quit();
return 0;
}