1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 08:29:11 +00:00

(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)
This commit is contained in:
truelight
2006-08-25 12:26:34 +00:00
parent e095b7441f
commit bd80b4fd19
2 changed files with 23 additions and 16 deletions

View File

@@ -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;