summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfsdir.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-06 18:08:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-06 18:08:27 +0300
commitc7b2d6baf29cd2a248e2d8dc09f7916643845f97 (patch)
tree16ac981c403eb48baccaca10290b7d7bc1d03eab /src/fs/virtfs/virtfsdir.h
parentb1241b3e98f72b50f38dad602da3d3f4b4edc7bf (diff)
downloadplus-c7b2d6baf29cd2a248e2d8dc09f7916643845f97.tar.gz
plus-c7b2d6baf29cd2a248e2d8dc09f7916643845f97.tar.bz2
plus-c7b2d6baf29cd2a248e2d8dc09f7916643845f97.tar.xz
plus-c7b2d6baf29cd2a248e2d8dc09f7916643845f97.zip
Add support for standard library file api in virtfs.s20170306
Because posix file api broken in mingw.
Diffstat (limited to 'src/fs/virtfs/virtfsdir.h')
-rw-r--r--src/fs/virtfs/virtfsdir.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/virtfs/virtfsdir.h b/src/fs/virtfs/virtfsdir.h
index 826d4dde4..e689fcd95 100644
--- a/src/fs/virtfs/virtfsdir.h
+++ b/src/fs/virtfs/virtfsdir.h
@@ -25,6 +25,8 @@
#include "enums/simpletypes/append.h"
#include "enums/simpletypes/skiperror.h"
+#include "fs/virtfs/fileapi.h"
+
#include "utils/stringvector.h"
#include "localconsts.h"
@@ -38,7 +40,7 @@ namespace VirtFsDir
{
VirtFile *openInternal(VirtFsEntry *restrict const entry,
const std::string &filename,
- const int mode);
+ const FILEMTYPE mode);
VirtFile *openRead(VirtFsEntry *restrict const entry,
const std::string &filename);
VirtFile *openWrite(VirtFsEntry *restrict const entry,