summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-04 17:05:47 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-05 15:36:45 +0100
commitfe045dca6124c9627c1cfa9dac4072ae75292910 (patch)
tree06bc641aa0b6c8fbfe37b04131a37228842f24cd /vcl/source/gdi
parentb3f6c29626965842fe0437f2c02a703883ec8cd1 (diff)
vcl: tweak some optional usage of Windows 7 or later symbols...
... so that -D_WIN32_WINNT=0x0502 does not break the build. Change-Id: I423ba9c194dc4928d59e1713255bce9c3150bcc2
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 4e048a14de90..838a8826257d 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -85,6 +85,10 @@
#ifdef _WIN32
// WinCrypt headers for PDF signing
+// Note: this uses Windows 7 APIs and requires the relevant data types;
+// the functions that don't exist in WinXP must be looked up at runtime!
+#undef _WIN32_WINNT
+#define _WIN32_WINNT _WIN32_WINNT_WIN7
#include <prewin.h>
#include <wincrypt.h>
#include <postwin.h>