X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fvfs.h;h=228f5d51c58ca9a77fe77b7bee96d7d5cdc5fea4;hb=0cea019fcb5bb4890b6d67086c7ce8b82f5aca2b;hp=51ac6dddcfce11f6d2984f16333667479912f297;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/common/vfs.h b/tools/quake3/common/vfs.h index 51ac6ddd..228f5d51 100644 --- a/tools/quake3/common/vfs.h +++ b/tools/quake3/common/vfs.h @@ -31,21 +31,32 @@ #ifndef _VFS_H_ #define _VFS_H_ +#include "globaldefs.h" + // to get PATH_MAX #include -#if defined ( __linux__ ) || defined ( __APPLE__ ) -#include -#include -#else + +#if GDEF_OS_WINDOWS #include #include -#define R_OK 04 #define S_ISDIR( mode ) ( mode & _S_IFDIR ) +#else // !GDEF_OS_WINDOWS +#include +#include +#endif // !GDEF_OS_WINDOWS + +#ifndef PATH_MAX #define PATH_MAX 260 +#endif // PATH_MAX + +// PATH_MAX +#if defined( __FreeBSD__ ) +#include #endif -#include -#define VFS_MAXDIRS 64 +// Multiple pakpaths with many pk3dirs can lead +// to high list of VFS directories +#define VFS_MAXDIRS 256 void vfsInitDirectory( const char *path ); void vfsShutdown();