From 7e761058883b013c597097d47fdc041b4a5f7374 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 23 May 2019 02:42:39 +0200 Subject: [PATCH] gdef: PATH_MAX seems to not only be undefined on Windows but on macOS too --- tools/quake3/common/vfs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.39.2