summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-g++/qmake.conf
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-06-14 15:12:39 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-07-03 06:02:24 +0000
commit0512c3e257a7e677484ee7c9a495e68fb22af985 (patch)
treec87bb4dbe2818af00dea977cb2846aed6d79fb97 /mkspecs/win32-g++/qmake.conf
parentb446275ac70e99b28efa9b6fcc84ec989cac8c4b (diff)
Add _UNICODE define to MSVC and MinGW mkspecs
System headers like tchar.h need the _UNICODE define, not UNICODE. While qplatformdefs.h already provides _UNICODE when UNICODE is defined, users might want to include tchar.h without Qt includes. This is consistent with Visual Studio's default defines. Task-number: QTBUG-61411 Change-Id: I2f604368080270d840f0dbb2cf273805d2ba5239 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/win32-g++/qmake.conf')
-rw-r--r--mkspecs/win32-g++/qmake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/win32-g++/qmake.conf b/mkspecs/win32-g++/qmake.conf
index 625758c751..29151ef8b9 100644
--- a/mkspecs/win32-g++/qmake.conf
+++ b/mkspecs/win32-g++/qmake.conf
@@ -13,7 +13,7 @@ include(../common/g++-base.conf)
MAKEFILE_GENERATOR = MINGW
QMAKE_PLATFORM = win32 mingw
CONFIG += debug_and_release debug_and_release_target precompile_header
-DEFINES += UNICODE
+DEFINES += UNICODE _UNICODE
QMAKE_COMPILER_DEFINES += __GNUC__ WIN32
QMAKE_EXT_OBJ = .o