Allow dialogs to be displayed on other Unix-like OSs

This commit is contained in:
Cacodemon345 2020-06-03 11:40:49 +06:00 committed by alexey.lysiuk
parent fa54afbd08
commit 392f78dfbc

View file

@ -78,8 +78,8 @@ void I_SetIWADInfo()
void Mac_I_FatalError(const char* errortext); void Mac_I_FatalError(const char* errortext);
#endif #endif
#ifdef __linux__ #ifdef __unix__
void Linux_I_FatalError(const char* errortext) void Unix_I_FatalError(const char* errortext)
{ {
// Close window or exit fullscreen and release mouse capture // Close window or exit fullscreen and release mouse capture
SDL_Quit(); SDL_Quit();
@ -116,8 +116,8 @@ void I_ShowFatalError(const char *message)
{ {
#ifdef __APPLE__ #ifdef __APPLE__
Mac_I_FatalError(message); Mac_I_FatalError(message);
#elif defined __linux__ #elif defined __unix__
Linux_I_FatalError(message); Unix_I_FatalError(message);
#else #else
// ??? // ???
#endif #endif