Undef _T before including standard headers and redefine it later.
This change fixes the build of wxWidgets itself by undefining _T() before including any standard headers and redefining it after including them. See #10660. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,3 +63,13 @@
|
||||
#pragma warning(disable:4786)
|
||||
#endif // VC++ < 7
|
||||
|
||||
/*
|
||||
Recent versions of Sun C++ compiler use _T in their standard headers and
|
||||
our definition of it in wx/wxchar.h conflicts with them and breaks
|
||||
compilation, so undefine _T before including them and redefine it back in
|
||||
wx/afterstd.h if needed.
|
||||
*/
|
||||
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
|
||||
#undef _T
|
||||
#endif /* SUNCC */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user