diff options
author | truelight <truelight@openttd.org> | 2006-08-25 12:26:34 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-25 12:26:34 +0000 |
commit | bd80b4fd19532248f807eb6edcf991d4f024be48 (patch) | |
tree | adf6d1b2b953c70b068bbaee2df79fe6a7ff548b /stdafx.h | |
parent | e095b7441f96f9c17d77b7391ef8d2ce22d66a13 (diff) | |
download | openttd-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |