X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fqe3.cpp;h=b2b61791c02bb76cee32af1e0930dc16fa098f2e;hb=2951e448a7f008f2438be4bd5feba2e4f4400eef;hp=193a0a49c2e8edf740e6d551554f459c669b7379;hpb=771bab14ffa4b131540b125aff6554265662f874;p=xonotic%2Fnetradiant.git diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index 193a0a49..b2b61791 100644 --- a/radiant/qe3.cpp +++ b/radiant/qe3.cpp @@ -33,6 +33,9 @@ // #include "qe3.h" +#include "globaldefs.h" + +#include #include "debugging/debugging.h" @@ -64,7 +67,7 @@ QEGlobals_t g_qeglobals; -#if defined( WIN32 ) +#if GDEF_OS_WINDOWS #define PATH_MAX 260 #endif @@ -279,10 +282,10 @@ void RunBSP( const char* name ){ strcat( junkpath, "junk.txt" ); char batpath[PATH_MAX]; -#if defined( POSIX ) +#if GDEF_OS_POSIX strcpy( batpath, SettingsPath_get() ); strcat( batpath, "qe3bsp.sh" ); -#elif defined( WIN32 ) +#elif GDEF_OS_WINDOWS strcpy( batpath, SettingsPath_get() ); strcat( batpath, "qe3bsp.bat" ); #else @@ -292,7 +295,7 @@ void RunBSP( const char* name ){ { TextFileOutputStream batchFile( batpath ); if ( !batchFile.failed() ) { -#if defined ( POSIX ) +#if GDEF_OS_POSIX batchFile << "#!/bin/sh \n\n"; #endif BatchCommandListener listener( batchFile, junkpath ); @@ -301,7 +304,7 @@ void RunBSP( const char* name ){ } } if ( written ) { -#if defined ( POSIX ) +#if GDEF_OS_POSIX chmod( batpath, 0744 ); #endif globalOutputStream() << "Writing the compile script to '" << batpath << "'\n";