X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Ferror.cpp;h=50a089645b43140b52fe2c8a311123dfdc34d98f;hb=d0c55aa64b53b881d7e1d7ab4abd03f60c561b6b;hp=fda7f79f8361fbc32619bd2d289b0173090076ad;hpb=dac8329952745dbb494bad1c301e44bab05ec0db;p=xonotic%2Fnetradiant.git diff --git a/radiant/error.cpp b/radiant/error.cpp index fda7f79f..50a08964 100644 --- a/radiant/error.cpp +++ b/radiant/error.cpp @@ -20,6 +20,7 @@ */ #include "error.h" +#include "globaldefs.h" #include "debugging/debugging.h" #include "igl.h" @@ -29,7 +30,7 @@ #include "preferences.h" -#ifdef WIN32 +#if GDEF_OS_WINDOWS #define UNICODE #include #else @@ -63,7 +64,7 @@ void Error( const char *error, ... ){ strcat( text, "\n" ); -#ifdef WIN32 +#if GDEF_OS_WINDOWS if ( GetLastError() != 0 ) { LPVOID lpMsgBuf; FormatMessage(