From 400418b1d382a7db2386face315979e944a74f7b Mon Sep 17 00:00:00 2001 From: spacy51 Date: Thu, 16 Oct 2008 14:16:09 +0000 Subject: [PATCH] ADDED patch files to Win32/MFC project ADDED Microsoft compatible replacements for fseeko64, ftello64 and __off64_t --- project/vc2008_mfc/VBA2008.vcproj | 8 ++++++++ src/Patch.cpp | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/project/vc2008_mfc/VBA2008.vcproj b/project/vc2008_mfc/VBA2008.vcproj index 1c541161..9c555a3e 100644 --- a/project/vc2008_mfc/VBA2008.vcproj +++ b/project/vc2008_mfc/VBA2008.vcproj @@ -810,6 +810,14 @@ RelativePath="..\..\src\NLS.h" > + + + + diff --git a/src/Patch.cpp b/src/Patch.cpp index 04401e79..9d48e460 100644 --- a/src/Patch.cpp +++ b/src/Patch.cpp @@ -34,6 +34,12 @@ #define _stricmp strcasecmp #endif // ! _MSC_VER +#ifdef _MSC_VER +#define fseeko64 _fseeki64 +#define ftello64 _ftelli64 +typedef __int64 __off64_t; +#endif + #if defined(__APPLE__) || defined (MACOSX) #define fseeko64 fseeko #define ftello64 ftello