]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/filefn.h
Add WX_FIND_LIB() function to simplify testing for libraries in configure.
[wxWidgets.git] / 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__)