diff --git a/neo/framework/FileSystem.h b/neo/framework/FileSystem.h index d7188882..cae616c5 100644 --- a/neo/framework/FileSystem.h +++ b/neo/framework/FileSystem.h @@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms #ifndef __FILESYSTEM_H__ #define __FILESYSTEM_H__ +#include + #include "idlib/containers/StrList.h" #include "framework/File.h" @@ -55,9 +57,9 @@ 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_OSPATH = 256; +static const int MAX_OSPATH = PATH_MAX; // modes for OpenFileByMode. used as bit mask internally typedef enum { diff --git a/neo/sys/posix/posix_main.cpp b/neo/sys/posix/posix_main.cpp index 768f8db0..ff953605 100644 --- a/neo/sys/posix/posix_main.cpp +++ b/neo/sys/posix/posix_main.cpp @@ -41,13 +41,13 @@ If you have questions concerning this license or the applicable additional terms #include "sys/platform.h" #include "idlib/containers/StrList.h" +#include "framework/FileSystem.h" #include "framework/KeyInput.h" #include "framework/EditField.h" #include "sys/sys_local.h" #include "sys/posix/posix_public.h" -#define MAX_OSPATH 256 #define COMMAND_HISTORY 64 static int input_hide = 0; diff --git a/neo/sys/win32/win_local.h b/neo/sys/win32/win_local.h index 84d8ffa4..32d48ff2 100644 --- a/neo/sys/win32/win_local.h +++ b/neo/sys/win32/win_local.h @@ -46,8 +46,6 @@ If you have questions concerning this license or the applicable additional terms #include "renderer/wglext.h" // windows OpenGL extensions #include "sys/sys_public.h" -#define MAX_OSPATH 256 - #define WINDOW_STYLE (WS_OVERLAPPED|WS_BORDER|WS_CAPTION|WS_VISIBLE | WS_THICKFRAME) void Sys_CreateConsole( void );