Drop fallback for old SDL <2.0.14 on Linux

Debian Buster (10) is EOL in a month, Bullseye (11) and derivatives all have 2.0.14+ available.
This commit is contained in:
ROllerozxa 2024-06-02 21:53:01 +02:00
commit bf3a3a3a2e

View file

@ -11497,14 +11497,6 @@ void ui::open_url(const char *url)
#if SDL_VERSION_ATLEAST(2,0,14)
tms_infof("open url (SDL): %s", url);
SDL_OpenURL(url);
#elif defined(TMS_BACKEND_LINUX)
// Fallback for old Linux distros that don't contain SDL2 2.0.14
tms_infof("open url (Fallback): %s", url);
if (fork() == 0) {
execlp("xdg-open", "xdg-open", url, NULL);
_exit(0);
}
#else
#error "SDL2 2.0.14+ is required for this platform"
#endif