]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/vfs.h
gdef: PATH_MAX seems to not only be undefined on Windows but on macOS too
[xonotic/netradiant.git] / 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 );