From 08848c9f95a940f3aec463111f759812a8dc7086 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 15 Apr 2004 22:34:19 +0000 Subject: [PATCH] define _puttchar for mingw32 as it doesn't have it (patch 875611) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/gccpriv.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/msw/gccpriv.h b/include/wx/msw/gccpriv.h index 220e1bcd63..a7ec8e86a6 100644 --- a/include/wx/msw/gccpriv.h +++ b/include/wx/msw/gccpriv.h @@ -90,6 +90,16 @@ #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_ */ -- 2.45.2