#ifndef __CMDLIB__
#define __CMDLIB__
+#include "globaldefs.h"
#include <time.h>
// 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
// 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;