SDL: add version check for SDL_OPenURL()

This commit is contained in:
Alam Ed Arias 2023-09-12 19:32:47 -04:00
parent 02c4720703
commit 8558d123ee

View file

@ -406,8 +406,10 @@ static void I_ReportSignal(int num, int coredumped)
SDL_ShowMessageBox(&messageboxdata, &buttonid);
#if SDL_VERSION_ATLEAST(2,0,14)
if (buttonid == 1)
SDL_OpenURL("https://www.srb2.org/discord");
#endif
}
#ifndef NEWSIGNALHANDLER