From 7fab07efba9b8c9bb21949a82f1a1c2d84d75e3e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2006 13:16:02 +0000 Subject: [PATCH] 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 --- include/wx/wxchar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) */