summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2014-03-17 21:18:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 23:00:50 +0100
commit13171e7e63bc5199d783e33decf7f402019d05cc (patch)
tree9163ec14db173c2d20ba4b29c1603e04e32640d1
parentfd6728a5bc41059e660c697cffcf1140751a12e2 (diff)
Fix build on older MinGW versions
> In constructor 'QWindowsPrintDevice::QWindowsPrintDevice(const QString&)': > src\plugins\printsupport\windows\qwindowsprintdevice.cpp:105:86: > error: 'DC_COLLATE' was not declared in this scope Change-Id: Ifb64c323765ae4b6abb80c32d4ba2bc3fbffa245 Reviewed-by: John Layt <jlayt@kde.org>
-rw-r--r--src/plugins/printsupport/windows/qwindowsprintdevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/printsupport/windows/qwindowsprintdevice.cpp b/src/plugins/printsupport/windows/qwindowsprintdevice.cpp
index fce4bbb42b..1b55937ec7 100644
--- a/src/plugins/printsupport/windows/qwindowsprintdevice.cpp
+++ b/src/plugins/printsupport/windows/qwindowsprintdevice.cpp
@@ -43,6 +43,10 @@
#include <qdebug.h>
+#ifndef DC_COLLATE
+# define DC_COLLATE 22
+#endif
+
QT_BEGIN_NAMESPACE
#ifndef QT_NO_PRINTER