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>
bb10
Erik van Pienbroek 2012-12-11 23:58:19 +01:00 committed by The Qt Project
parent 40fb2ea92a
commit 225a835777
1 changed files with 5 additions and 0 deletions

View File

@ -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"