From e3e8e3c0aa864da4c7e5bfbee200d9f0732cf4c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 27 Apr 2007 10:08:53 +0000 Subject: [PATCH] include wxchar.h from string.h in 2.8 compatibility mode to prevent lots of compilation errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/string.h b/include/wx/string.h index 226e6effec..43bde5e5c1 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2756,4 +2756,12 @@ inline wxWCharBuffer::wxWCharBuffer(const wxCStrData& cstr) { } +#if WXWIN_COMPATIBILITY_2_8 + // lot of code out there doesn't explicitly include wx/wxchar.h, but uses + // CRT wrappers that are now declared in wx/wxcrt.h and wx/wxcrtvararg.h, + // so let's include this header now that wxString is defined and it's safe + // to do it: + #include "wx/wxchar.h" +#endif + #endif // _WX_WXSTRING_H_ -- 2.45.2