]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/error.cpp
do not rename() .map symlinks, but just overwrite them
[xonotic/netradiant.git] / radiant / error.cpp
index fda7f79f8361fbc32619bd2d289b0173090076ad..fbb77c2933b3c79fc6b0b53e2151d7a873933a71 100644 (file)
@@ -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 <windows.h>
 #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(
@@ -129,7 +130,7 @@ void Error( const char *error, ... ){
        ERROR_MESSAGE( text );
 
        // force close logging if necessary
-       Sys_LogFile( false );
+       Sys_EnableLogFile( false );
 
        _exit( 1 );
 }