From 7a84e7dcca872a8e803ff528e6df7b1cd7aab706 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 17 Oct 2010 00:32:31 +0300 Subject: [PATCH] Add comment that qmake doesn't add _UNICODE define for project files. --- lib/filelister_win32.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filelister_win32.cpp b/lib/filelister_win32.cpp index 975587c47..ea604ee67 100644 --- a/lib/filelister_win32.cpp +++ b/lib/filelister_win32.cpp @@ -43,6 +43,9 @@ // ANSI to Unicode. Likewise we must convert data we get from WinAPI from // Unicode to ANSI. +// Note that qmake creates VS project files that define UNICODE but don't +// define _UNICODE! Which means e.g. TCHAR macros don't work properly. + #if defined(UNICODE) static bool TransformUcs2ToAnsi(LPCWSTR psUcs, LPSTR psAnsi, int nAnsi)