From: <web...@pr...> - 2019-05-22 07:45:59
|
Author: entryway Date: Wed May 22 07:29:04 2019 New Revision: 4540 Log: Debian package fails to build on GNU/Hurd. This is because this system does not have the PATH_MAX macro defined. On the other hand, this macro is undefined and then redefined on MSVC. I have fixed the code to undefine the macro on MSVC and then define it whenever it is undefined later. Fabian Greffrath Modified: branches/prboom-plus-24/prboom2/src/doomtype.h Modified: branches/prboom-plus-24/prboom2/src/doomtype.h ============================================================================== --- branches/prboom-plus-24/prboom2/src/doomtype.h Mon Dec 24 09:44:24 2018 (r4539) +++ branches/prboom-plus-24/prboom2/src/doomtype.h Wed May 22 07:29:04 2019 (r4540) @@ -84,10 +84,13 @@ // define compiled-specific long-long contstant notation here #define LONGLONG(num) (uint_64_t)num #undef PATH_MAX -#define PATH_MAX 1024 #define strcasecmp _stricmp #define strncasecmp _strnicmp #define S_ISDIR(x) (((sbuf.st_mode & S_IFDIR)==S_IFDIR)?1:0) +#endif + +#ifndef PATH_MAX +#define PATH_MAX 1024 #endif #ifdef __GNUC__ |