From: Václav Slavík Date: Fri, 27 Apr 2007 10:08:53 +0000 (+0000) Subject: include wxchar.h from string.h in 2.8 compatibility mode to prevent lots of compilati... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e3e8e3c0aa864da4c7e5bfbee200d9f0732cf4c5 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 --- 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_