From: Thomas Debesse Date: Thu, 23 May 2019 00:42:39 +0000 (+0200) Subject: gdef: PATH_MAX seems to not only be undefined on Windows but on macOS too X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7e761058883b013c597097d47fdc041b4a5f7374;p=xonotic%2Fnetradiant.git gdef: PATH_MAX seems to not only be undefined on Windows but on macOS too --- diff --git a/tools/quake3/common/vfs.h b/tools/quake3/common/vfs.h index 310d67c5..6920fd1c 100644 --- a/tools/quake3/common/vfs.h +++ b/tools/quake3/common/vfs.h @@ -40,12 +40,15 @@ #include #include #define S_ISDIR( mode ) ( mode & _S_IFDIR ) -#define PATH_MAX 260 #else // !GDEF_OS_WINDOWS #include #include #endif // !GDEF_OS_WINDOWS +#ifndef PATH_MAX +#define PATH_MAX 260 +#endif // PATH_MAX + #define VFS_MAXDIRS 64 void vfsInitDirectory( const char *path );