]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/cmdlib.h
Merge commit 'b7e5662d0c9342cc42501de697386ef5a96277e6' into master-merge
[xonotic/netradiant.git] / libs / cmdlib.h
index 843dee76368813bf469914e77d7c5d7f8ef2c2d7..e901486d0ecc38c6ef709533df57bd5c5e501157 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef __CMDLIB__
 #define __CMDLIB__
 
+#include "globaldefs.h"
 #include <time.h>
 
 
@@ -43,7 +44,7 @@
 //   if the spawn was fine
 //   TODO TTimo add functionality to track the process until it dies
 
-bool Q_Exec( const char *cmd, char *cmdline, const char *execdir, bool bCreateConsole, bool waitfor );
+bool Q_Exec( const char *cmd, const char *cmdline, const char *execdir, bool bCreateConsole, bool waitfor );
 
 // some easy portability crap
 
@@ -78,7 +79,7 @@ bool Q_Exec( const char *cmd, char *cmdline, const char *execdir, bool bCreateCo
 
 // Q_mkdir
 // returns true if succeeded in creating directory
-#ifdef WIN32
+#if GDEF_OS_WINDOWS
 #include <direct.h>
 inline bool Q_mkdir( const char* name ){
        return _mkdir( name ) != -1;