From 0f172abb004bed203f8bf329e4f43eb174a8a58c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Mar 2017 02:19:37 +0300 Subject: Fix compilation without physfs. Also split fs related files to virtfs and physfs. --- src/fs/virtfile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/fs/virtfile.cpp') diff --git a/src/fs/virtfile.cpp b/src/fs/virtfile.cpp index 2fe475d4f..8a06be4e5 100644 --- a/src/fs/virtfile.cpp +++ b/src/fs/virtfile.cpp @@ -20,9 +20,14 @@ #include "fs/virtfile.h" -#include "fs/virtfileprivate.h" #include "fs/virtfsfuncs.h" +#ifdef USE_PHYSFS +#include "fs/physfs/virtfileprivate.h" +#else // USE_PHYSFS +#include "fs/virtfs/virtfileprivate.h" +#endif // USE_PHYSFS + #include "debug.h" VirtFile::VirtFile(const VirtFsFuncs *restrict const funcs0) : -- cgit v1.2.3-70-g09d2