From: Michael Wetherell Date: Wed, 30 Dec 2009 17:38:22 +0000 (+0000) Subject: Support large files with stdio on mingw. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61a69259c442653024f557707b5ca652d84919e0 Support large files with stdio on mingw. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/filefn.h b/include/wx/filefn.h index c5bdf72ef4..d57060e1cb 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -190,6 +190,10 @@ enum wxFileKind #define wxHAS_HUGE_STDIO_FILES #define wxFseek _fseeki64 #define wxFtell _ftelli64 + #elif wxCHECK_MINGW32_VERSION(3, 5) // mingw-runtime version (not gcc) + #define wxHAS_HUGE_STDIO_FILES + #define wxFseek fseeko64 + #define wxFtell ftello64 #endif // other Windows compilers (DMC, Watcom, Metrowerks and Borland) don't have diff --git a/include/wx/platform.h b/include/wx/platform.h index 33770bcb42..dd343949e5 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -652,6 +652,8 @@ #else # undef wxCHECK_W32API_VERSION # define wxCHECK_W32API_VERSION(maj, min) (0) +# undef wxCHECK_MINGW32_VERSION +# define wxCHECK_MINGW32_VERSION(maj, min) (0) #endif /**