From c7b2d6baf29cd2a248e2d8dc09f7916643845f97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Mar 2017 18:08:27 +0300 Subject: Add support for standard library file api in virtfs. Because posix file api broken in mingw. --- src/fs/virtfs/virtfileprivate.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/fs/virtfs/virtfileprivate.h') diff --git a/src/fs/virtfs/virtfileprivate.h b/src/fs/virtfs/virtfileprivate.h index d074d13bc..08c6a3311 100644 --- a/src/fs/virtfs/virtfileprivate.h +++ b/src/fs/virtfs/virtfileprivate.h @@ -24,11 +24,17 @@ #include "localconsts.h" +#include "fs/virtfs/fileapi.h" + +#ifdef USE_FILE_FOPEN +#include +#endif // USE_FILE_FOPEN + struct VirtFilePrivate final { VirtFilePrivate(); - explicit VirtFilePrivate(const int fd); + explicit VirtFilePrivate(FILEHTYPE fd); VirtFilePrivate(uint8_t *restrict const buf, const size_t sz); @@ -45,7 +51,7 @@ struct VirtFilePrivate final size_t mSize; // dirfs fields - int mFd; + FILEHTYPE mFd; }; #endif // USE_PHYSFS -- cgit v1.2.3-70-g09d2