From 392f78dfbc0bd83effb617b4d41443a19926fb9a Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 3 Jun 2020 11:40:49 +0600 Subject: [PATCH] Allow dialogs to be displayed on other Unix-like OSs --- src/common/platform/posix/sdl/i_system.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/platform/posix/sdl/i_system.cpp b/src/common/platform/posix/sdl/i_system.cpp index 43b8c86649..6e2f3f35de 100644 --- a/src/common/platform/posix/sdl/i_system.cpp +++ b/src/common/platform/posix/sdl/i_system.cpp @@ -78,8 +78,8 @@ void I_SetIWADInfo() void Mac_I_FatalError(const char* errortext); #endif -#ifdef __linux__ -void Linux_I_FatalError(const char* errortext) +#ifdef __unix__ +void Unix_I_FatalError(const char* errortext) { // Close window or exit fullscreen and release mouse capture SDL_Quit(); @@ -116,8 +116,8 @@ void I_ShowFatalError(const char *message) { #ifdef __APPLE__ Mac_I_FatalError(message); -#elif defined __linux__ - Linux_I_FatalError(message); +#elif defined __unix__ + Unix_I_FatalError(message); #else // ??? #endif