From e55a586a25af3557b5264e94fb400c6bed290232 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 23 Apr 2014 02:04:11 +0400 Subject: [PATCH] Fix TEXT() usage for concatenated strings in GC_CreateLogFile (Win32) * misc.c (GC_CreateLogFile): Use TEXT() for each of concatenated literals (fix "concatenating mismatched strings" error if UNICODE defined). --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index 2aac144b..6490541e 100644 --- a/misc.c +++ b/misc.c @@ -1340,8 +1340,8 @@ GC_API void GC_CALL GC_enable_incremental(void) if (len > 4 && pathBuf[len - 4] == (TCHAR)'.') { len -= 4; /* strip executable file extension */ } - BCOPY(TEXT("." GC_LOG_STD_NAME), &pathBuf[len], - sizeof(TEXT("." GC_LOG_STD_NAME))); + BCOPY(TEXT(".") TEXT(GC_LOG_STD_NAME), &pathBuf[len], + sizeof(TEXT(".") TEXT(GC_LOG_STD_NAME))); # endif } -- 2.40.0