X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e0126c2204732b9dfeefef0de838d7d375cf1f0..b1d4dd7add411ebff1ce4a8d1d992e0e43ee26b1:/include/wx/filefn.h

diff --git a/include/wx/filefn.h b/include/wx/filefn.h
index f679c61145..76a361e0ef 100644
--- a/include/wx/filefn.h
+++ b/include/wx/filefn.h
@@ -75,7 +75,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
 
 // Microsoft compiler loves underscores, feed them to it
 #if defined( __VISUALC__ ) \
-    || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
+    || ( defined(__MINGW32__) && !defined(__WINE__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
     || ( defined(__MWERKS__) && defined(__WXMSW__) )
     // functions
     #define   wxClose      _close