summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-25 12:26:34 +0000
committertruelight <truelight@openttd.org>2006-08-25 12:26:34 +0000
commitbd80b4fd19532248f807eb6edcf991d4f024be48 (patch)
treeadf6d1b2b953c70b068bbaee2df79fe6a7ff548b /stdafx.h
parente095b7441f96f9c17d77b7391ef8d2ce22d66a13 (diff)
downloadopenttd-bd80b4fd19532248f807eb6edcf991d4f024be48.tar.xz
(svn r6117) -Fix r6097: on mingw it is normal that both / as \ are accepted as input
-Fix r6096: detect for PATHSEP on WIN32 or WIN64, not UNIX (Windows compilers define either one, while other compilers don't define a thing)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdafx.h b/stdafx.h
index 790a77e32..aebb3fe67 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -173,12 +173,12 @@
# endif
#endif /* WIN32 || __OS2__ || WIN64 */
-#if defined(UNIX)
-# define PATHSEP "/"
-# define PATHSEPCHAR '/'
-#else
+#if defined(WIN32) || defined(WIN64) || defined(__OS2__)
# define PATHSEP "\\"
# define PATHSEPCHAR '\\'
+#else
+# define PATHSEP "/"
+# define PATHSEPCHAR '/'
#endif
typedef unsigned char byte;