]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - platform.h
Add back the correct directory handling for msvc
[xonotic/gmqcc.git] / platform.h
index f1116addb166d6721275e2cfe5cb8300e3864829..0914545aca6ad7ea0a2baddc7144ac8302d9c1ff 100644 (file)
 #include <stdio.h>
 
 #ifdef _WIN32
-#   undef  STDERR_FILENO
-#   undef  STDOUT_FILENO
-#   define STDERR_FILENO 2
-#   define STDOUT_FILENO 1
-
+#   ifndef STDERR_FILENO
+#       define STDERR_FILENO 2
+#   endif
+#   ifndef STDOUT_FILENO
+#       define STDOUT_FILENO 1
+#   endif
 #   ifndef __MINGW32__
 #       define _WIN32_LEAN_AND_MEAN
 #       include <windows.h>