]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
gdef: PATH_MAX seems to not only be undefined on Windows but on macOS too
authorThomas Debesse <dev@illwieckz.net>
Thu, 23 May 2019 00:42:39 +0000 (02:42 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 1 Jun 2019 15:09:22 +0000 (17:09 +0200)
tools/quake3/common/vfs.h

index 310d67c56a3120956e0f96921e31f8dc122aba8f..6920fd1c4153d792c988fe612d823b2e52cc0982 100644 (file)
 #include <wtypes.h>
 #include <io.h>
 #define S_ISDIR( mode ) ( mode & _S_IFDIR )
-#define PATH_MAX 260
 #else // !GDEF_OS_WINDOWS
 #include <dirent.h>
 #include <unistd.h>
 #endif // !GDEF_OS_WINDOWS
 
+#ifndef PATH_MAX
+#define PATH_MAX 260
+#endif // PATH_MAX
+
 #define VFS_MAXDIRS 64
 
 void vfsInitDirectory( const char *path );