summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik van Pienbroek <epienbro@fedoraproject.org>2012-12-11 23:58:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-12 15:27:05 +0100
commit225a8357776dea2fc469bc51fe8b04092b7e84dd (patch)
tree76bfe3d9988eecf7bbdd3f914b9b7171d12fa38c
parent40fb2ea92a906b2c295d978555b25ea2794d4306 (diff)
DirectWrite support on MinGW needs _WIN32_WINNT to be set to 0x0600
The file qwindowsfontenginedirectwrite.cpp uses the Win32 API function GetUserDefaultLocaleName which requires _WIN32_WINNT to be set to 0x0600 as it only became available in Windows Vista Change-Id: I704705d3fc729bb0167121de991d01c957e1e7e4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r--src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp b/src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp
index add36c78cf..83f9e1db74 100644
--- a/src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp
+++ b/src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp
@@ -41,6 +41,11 @@
#ifndef QT_NO_DIRECTWRITE
+#if _WIN32_WINNT < 0x0600
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0600
+#endif
+
#include "qwindowsfontenginedirectwrite.h"
#include "qwindowsfontdatabase.h"
#include "qwindowscontext.h"