]> git.saurik.com Git - wxWidgets.git/commitdiff
define _puttchar for mingw32 as it doesn't have it (patch 875611)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Apr 2004 22:34:19 +0000 (22:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Apr 2004 22:34:19 +0000 (22:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/gccpriv.h

index 220e1bcd63c07ff389b9f6344fc368788806467f..a7ec8e86a673f21e18375efacf9d7a2f10562334 100644 (file)
     #endif
 #endif
 
+// current mingw32 headers forget to define _puttchar, this will probably be
+// fixed in the next versions but for now do it ourselves
+#if defined( __MINGW32__ ) && !defined( _puttchar )
+    #ifdef wxUSE_UNICODE
+        #define  _puttchar   putwchar
+    #else
+        #define  _puttchar   puttchar
+    #endif
+#endif
+
 
 #endif
   /* _WX_MSW_GCCPRIV_H_ */