]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes for Cygwin compilation
authorMattia Barbon <mbarbon@cpan.org>
Tue, 27 Nov 2001 20:44:22 +0000 (20:44 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Tue, 27 Nov 2001 20:44:22 +0000 (20:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filefn.h
include/wx/wxchar.h

index a0fd19d272ef424389522bc0f3fc9273424f8b6a..537d889e884a1a1ac13542d885270772743b5522 100644 (file)
@@ -66,7 +66,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
 // ----------------------------------------------------------------------------
 
 // Microsoft compiler loves underscores, feed them to it
-#if defined( __VISUALC__ ) || wxCHECK_W32API_VERSION( 0, 5 ) \
+#if defined( __VISUALC__ ) \
+    || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
     || ( defined(__MWERKS__) && defined(__WXMSW__) )
     // functions
     #define   wxClose      _close
index c4742c529f671111a46f955955e5bb1dd7151d95..072e4cdf28506c8de47151df4036f5c955855073 100644 (file)
@@ -63,7 +63,7 @@
         #define wxHAVE_TCHAR_FUNCTIONS
     #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)
         #define wxHAVE_TCHAR_FUNCTIONS
-    #elif defined(__GNUWIN32__) && wxCHECK_W32API_VERSION( 1, 0 )
+    #elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 )
         #define wxHAVE_TCHAR_FUNCTIONS
         #include <stddef.h>
         #include <string.h>