win32: engine: common: client: filesystem: Fix windows build with -Werror=implicit-function-declaration

This commit is contained in:
lewa_j
2025-10-11 18:56:21 +03:00
committed by a1batross
parent 7bb630db2a
commit 37e9ac453b
5 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ GNU General Public License for more details.
#include <fcntl.h> #include <fcntl.h>
#if !XASH_WIN32 #if !XASH_WIN32
#include <dirent.h> #include <dirent.h>
#else
#include <io.h>
#endif #endif
static char id_md5[33]; static char id_md5[33];

View File

@@ -27,6 +27,10 @@ GNU General Public License for more details.
#include "library.h" #include "library.h"
#include "platform/platform.h" #include "platform/platform.h"
#if XASH_WIN32
#include <direct.h>
#endif
static CVAR_DEFINE_AUTO( fs_mount_hd, "0", FCVAR_PRIVILEGED, "mount high definition content folder" ); static CVAR_DEFINE_AUTO( fs_mount_hd, "0", FCVAR_PRIVILEGED, "mount high definition content folder" );
static CVAR_DEFINE_AUTO( fs_mount_lv, "0", FCVAR_PRIVILEGED, "mount low violence models content folder" ); static CVAR_DEFINE_AUTO( fs_mount_lv, "0", FCVAR_PRIVILEGED, "mount low violence models content folder" );
static CVAR_DEFINE_AUTO( fs_mount_addon, "0", FCVAR_PRIVILEGED, "mount addon content folder" ); static CVAR_DEFINE_AUTO( fs_mount_addon, "0", FCVAR_PRIVILEGED, "mount addon content folder" );

View File

@@ -23,6 +23,9 @@ GNU General Public License for more details.
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#include "xash3d_mathlib.h" #include "xash3d_mathlib.h"
#if XASH_WIN32
#include <io.h>
#endif
// do not waste precious CPU cycles on mobiles or low memory devices // do not waste precious CPU cycles on mobiles or low memory devices
#if !XASH_WIN32 && !XASH_MOBILE_PLATFORM && !XASH_LOW_MEMORY && !XASH_EMSCRIPTEN #if !XASH_WIN32 && !XASH_MOBILE_PLATFORM && !XASH_LOW_MEMORY && !XASH_EMSCRIPTEN

View File

@@ -17,6 +17,7 @@ GNU General Public License for more details.
#if XASH_LIB == LIB_WIN32 #if XASH_LIB == LIB_WIN32
#include "lib_win.h" #include "lib_win.h"
#include "utflib.h"
static const wchar_t *FS_PathToWideChar( const char *path ) static const wchar_t *FS_PathToWideChar( const char *path )
{ {

View File

@@ -27,6 +27,7 @@ GNU General Public License for more details.
#if XASH_WIN32 #if XASH_WIN32
#include <direct.h> #include <direct.h>
#include <io.h> #include <io.h>
#include "utflib.h"
#elif XASH_DOS4GW #elif XASH_DOS4GW
#include <direct.h> #include <direct.h>
#else #else