Use PATH_MAX for MAX_OSPATH on all platforms

The hardcoded 256 doesn't cut it.
This commit is contained in:
dhewg 2012-07-03 17:34:19 +02:00 committed by Daniel Gibson
parent a385bbeb29
commit a97f685132

View file

@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
#ifndef __FILESYSTEM_H__ #ifndef __FILESYSTEM_H__
#define __FILESYSTEM_H__ #define __FILESYSTEM_H__
#include <limits.h>
#include "idlib/containers/StrList.h" #include "idlib/containers/StrList.h"
#include "framework/File.h" #include "framework/File.h"
@ -57,7 +59,7 @@ If you have questions concerning this license or the applicable additional terms
static const ID_TIME_T FILE_NOT_FOUND_TIMESTAMP = 0xFFFFFFFF; static const ID_TIME_T FILE_NOT_FOUND_TIMESTAMP = 0xFFFFFFFF;
static const int MAX_PURE_PAKS = 128; static const int MAX_PURE_PAKS = 128;
static const int MAX_OSPATH = 256; static const int MAX_OSPATH = PATH_MAX;
// modes for OpenFileByMode. used as bit mask internally // modes for OpenFileByMode. used as bit mask internally
typedef enum { typedef enum {