mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
win32: engine: common: client: filesystem: Fix windows build with -Werror=implicit-function-declaration
This commit is contained in:
@@ -18,6 +18,8 @@ GNU General Public License for more details.
|
||||
#include <fcntl.h>
|
||||
#if !XASH_WIN32
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
static char id_md5[33];
|
||||
|
||||
@@ -27,6 +27,10 @@ GNU General Public License for more details.
|
||||
#include "library.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_lv, "0", FCVAR_PRIVILEGED, "mount low violence models content folder" );
|
||||
static CVAR_DEFINE_AUTO( fs_mount_addon, "0", FCVAR_PRIVILEGED, "mount addon content folder" );
|
||||
|
||||
@@ -23,6 +23,9 @@ GNU General Public License for more details.
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include "xash3d_mathlib.h"
|
||||
#if XASH_WIN32
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
// do not waste precious CPU cycles on mobiles or low memory devices
|
||||
#if !XASH_WIN32 && !XASH_MOBILE_PLATFORM && !XASH_LOW_MEMORY && !XASH_EMSCRIPTEN
|
||||
|
||||
@@ -17,6 +17,7 @@ GNU General Public License for more details.
|
||||
|
||||
#if XASH_LIB == LIB_WIN32
|
||||
#include "lib_win.h"
|
||||
#include "utflib.h"
|
||||
|
||||
static const wchar_t *FS_PathToWideChar( const char *path )
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@ GNU General Public License for more details.
|
||||
#if XASH_WIN32
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#include "utflib.h"
|
||||
#elif XASH_DOS4GW
|
||||
#include <direct.h>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user