Changeset - r15139:8fe9376dd021
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-05-10 09:43:49
rubidium@openttd.org
(svn r19778) -Change: use the value from PATH_MAX (POSIX) for MAX_PATH (Windows/OpenTTD) if it exists
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -416,7 +416,13 @@ void NORETURN CDECL error(const char *st
 
	#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
 

	
0 comments (0 inline, 0 general)