diff --git a/ExternalLibs/ttvfs/VFSFileFuncs.cpp b/ExternalLibs/ttvfs/VFSFileFuncs.cpp index b6a749b..183bf75 100644 --- a/ExternalLibs/ttvfs/VFSFileFuncs.cpp +++ b/ExternalLibs/ttvfs/VFSFileFuncs.cpp @@ -2,6 +2,8 @@ #include "VFSInternal.h" #include "VFSFileFuncs.h" +#include + VFS_NAMESPACE_START // Compile time assertion to make sure things work as expected diff --git a/ExternalLibs/ttvfs/VFSInternal.h b/ExternalLibs/ttvfs/VFSInternal.h index bcf8d78..54ec5f2 100644 --- a/ExternalLibs/ttvfs/VFSInternal.h +++ b/ExternalLibs/ttvfs/VFSInternal.h @@ -14,9 +14,18 @@ #include "VFSDefines.h" #if defined(VFS_LARGEFILE_SUPPORT) +# ifndef _LARGEFILE_SOURCE # define _LARGEFILE_SOURCE +# endif +# ifndef _LARGEFILE64_SOURCE # define _LARGEFILE64_SOURCE +# endif +# ifdef _FILE_OFFSET_BITS +# undef _FILE_OFFSET_BITS +# endif +# ifndef _FILE_OFFSET_BITS # define _FILE_OFFSET_BITS 64 +# endif #endif #if _MSC_VER diff --git a/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.cpp b/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.cpp index a719192..7493244 100644 --- a/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.cpp +++ b/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.cpp @@ -2,8 +2,9 @@ #include "ttvfs.h" #include "ttvfs_stdio.h" -#include +#include #include +#include static ttvfs::Root *vfs = NULL; diff --git a/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.h b/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.h index f198520..3830723 100644 --- a/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.h +++ b/ExternalLibs/ttvfs_cfileapi/ttvfs_stdio.h @@ -23,6 +23,8 @@ #include #include +#include + #include typedef ttvfs::File VFILE; diff --git a/ExternalLibs/ttvfs_zip/VFSZipArchiveRef.cpp b/ExternalLibs/ttvfs_zip/VFSZipArchiveRef.cpp index 0e38b3d..c257a39 100644 --- a/ExternalLibs/ttvfs_zip/VFSZipArchiveRef.cpp +++ b/ExternalLibs/ttvfs_zip/VFSZipArchiveRef.cpp @@ -1,4 +1,6 @@ +#include "VFSInternal.h" #include "VFSZipArchiveRef.h" +#include #include "miniz.h"