From: Vadim Zeitlin Date: Thu, 9 Mar 2006 13:16:02 +0000 (+0000) Subject: let _T() work with macros (modified patch 1437983) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7fab07efba9b8c9bb21949a82f1a1c2d84d75e3e?hp=e5e41cfecb9880ddef1ffd11a527f176cd7b87de let _T() work with macros (modified patch 1437983) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index ad650d57e8..52f6af64e2 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -232,7 +232,8 @@ #if !wxUSE_UNICODE #define _T(x) x #else /* Unicode */ - #define _T(x) L ## x + /* use wxCONCAT_HELPER so that x could be expanded if it's a macro */ + #define _T(x) wxCONCAT_HELPER(L, x) #endif /* ASCII/Unicode */ #endif /* !defined(_T) */