]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/common/cmdlib.c
ported over the 1.5 branch version of q3map2 which is newer
[xonotic/netradiant.git] / tools / quake2 / common / cmdlib.c
index 68a16d8278b35f4467eb6dd5c58155d0cdf1f939..f1ade4aa2e615b20b1d09f9203c9ccba1ed5c7e5 100644 (file)
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#ifdef _WIN32
+#ifdef WIN32
 #include <direct.h>
 #include <windows.h>
 #endif
@@ -93,7 +93,7 @@ Mimic unix command line expansion
 #define        MAX_EX_ARGC     1024
 int            ex_argc;
 char   *ex_argv[MAX_EX_ARGC];
-#ifdef _WIN32
+#ifdef WIN32
 #include "io.h"
 void ExpandWildcards( int *argc, char ***argv )
 {
@@ -337,7 +337,7 @@ void Q_getwd (char *out)
 {
        int i = 0;
 
-#ifdef _WIN32
+#ifdef WIN32
    _getcwd (out, 256);
    strcat (out, "\\");
 #else
@@ -356,7 +356,7 @@ void Q_getwd (char *out)
 
 void Q_mkdir (const char *path)
 {
-#ifdef _WIN32
+#ifdef WIN32
        if (_mkdir (path) != -1)
                return;
 #else
@@ -1159,7 +1159,7 @@ void      CreatePath (const char *path)
        char            c;
        char            dir[1024];
 
-#ifdef _WIN32
+#ifdef WIN32
        int             olddrive = -1;
 
        if ( path[1] == ':' )
@@ -1183,7 +1183,7 @@ void      CreatePath (const char *path)
                }
        }
 
-#ifdef _WIN32
+#ifdef WIN32
        if ( olddrive != -1 )
        {
                _chdrive( olddrive );
@@ -1212,7 +1212,7 @@ void QCopyFile (const char *from, const char *to)
 
 void Sys_Sleep(int n)
 {
-#ifdef _WIN32
+#ifdef WIN32
   Sleep (n);
 #endif
 #if defined (__linux__) || defined (__APPLE__)