mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19778) -Change: use the value from PATH_MAX (POSIX) for MAX_PATH (Windows/OpenTTD) if it exists
This commit is contained in:
parent
948beec597
commit
369dedca89
@ -416,7 +416,13 @@ void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
|
||||
#define _stricmp strcasecmp
|
||||
#endif
|
||||
|
||||
#if !defined(MAX_PATH)
|
||||
#if defined(MAX_PATH)
|
||||
/* It's already defined, no need to override */
|
||||
#elif defined(PATH_MAX) && PATH_MAX > 0
|
||||
/* Use the value from PATH_MAX, if it exists */
|
||||
#define MAX_PATH PATH_MAX
|
||||
#else
|
||||
/* If all else fails, hardcode something :( */
|
||||
#define MAX_PATH 260
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user