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:
8
stdafx.h
8
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;
|
||||
|
Reference in New Issue
Block a user