]> git.saurik.com Git - wxWidgets.git/commitdiff
Explicitly use _stati64() with MinGW-W64.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Oct 2011 22:26:13 +0000 (22:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Oct 2011 22:26:13 +0000 (22:26 +0000)
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

index 79d20a0d1b8a357f026fa4ffacb9effb46efdedf..7f42cc059c81c0151e5eaedc8569d0e7d0344814 100644 (file)
@@ -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__)