From cdf7bf04aa9f0a26a83267e7db6d3f1246a7b2b4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Sep 2009 22:37:14 +0000 Subject: [PATCH] Predefine wxNEEDS_T to fix wxrc compilation with Sun CC. After the recent changes _T() is not defined any longer when using Sun CC but this file does need it to be defined and seems to compile fine when it is, so define wxNEEDS_T before including any wx headers. See #10660. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxrc/wxrc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index cca4ba1522..c255db74b4 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -8,6 +8,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +// To fix compilation when using Sun CC we must define _T() for this file. +#define wxNEEDS_T + // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h"