From 907c13e156613d28accd8c7812f9c561bfff36a6 Mon Sep 17 00:00:00 2001 From: Miguel Costa Date: Mon, 7 Oct 2019 17:47:36 +0200 Subject: Remove Unicode macros when using multi-byte char set When calling qmake to get the pre-processor macros needed for the build, exclude UNICODE and _UNICODE if the CharacterSet property is set to 'multi-byte'. qmake always includes these macros by default. Excluding them in this case will ensure the multi-byte version of Windows API functions is used. Task-number: QTVSADDINBUG-670 Change-Id: I7e766c43a25359f9c66672621fc537027b144193 Reviewed-by: Joerg Bornemann --- src/qtmsbuild/qt_vars.targets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qtmsbuild/qt_vars.targets b/src/qtmsbuild/qt_vars.targets index 7e61cbcf..c86c3656 100644 --- a/src/qtmsbuild/qt_vars.targets +++ b/src/qtmsbuild/qt_vars.targets @@ -157,6 +157,12 @@ $(QtVarsProFileInput) LIBS += $(QtLibs) + + + $(QtVarsProFileInput) + DEFINES -= UNICODE _UNICODE +