X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fqe3.cpp;h=b2b61791c02bb76cee32af1e0930dc16fa098f2e;hb=2a1cfc426e60b77c7b212d827e2592de01041266;hp=4de16016b47204021291864ee93e9d083ab50032;hpb=c52a4bd4da209e657018e8d799dcb488cd848e4c;p=xonotic%2Fnetradiant.git diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index 4de16016..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" @@ -41,7 +44,6 @@ #include -#include #include #include "stream/textfilestream.h" @@ -65,7 +67,7 @@ QEGlobals_t g_qeglobals; -#if defined( WIN32 ) +#if GDEF_OS_WINDOWS #define PATH_MAX 260 #endif @@ -280,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 @@ -293,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 ); @@ -302,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";