From e33cedf4c66f02c8a075ef1471d70661ca03a316 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Oct 2011 22:26:13 +0000 Subject: [PATCH] Explicitly use _stati64() with MinGW-W64. Although this compiler provides underscore-less versions of all POSIX functions, this one only exists in a version with underscore, so use it to fix compilation with it in ANSI build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 79d20a0d1b..7f42cc059c 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -368,7 +368,13 @@ enum wxPosixPermissions #define wxCRT_MkDirA wxPOSIX_IDENT(mkdir) #define wxCRT_RmDirA wxPOSIX_IDENT(rmdir) #ifdef wxHAS_HUGE_FILES - #define wxCRT_StatA wxPOSIX_IDENT(stati64) + // MinGW-64 provides underscore-less versions of all file functions + // except for this one. + #ifdef __MINGW64__ + #define wxCRT_StatA _stati64 + #else + #define wxCRT_StatA wxPOSIX_IDENT(stati64) + #endif #else // Unfortunately Watcom is not consistent #if defined(__OS2__) && defined(__WATCOMC__) -- 2.50.0