X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e22fb88f5d38236e274fbc6c06fe1e32fd69811..0c02f0701e960de4a1f60bc821c19c03b8fc88c3:/include/wx/msw/gccpriv.h 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_ */