summaryrefslogtreecommitdiff
path: root/sd/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-16 09:07:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-17 12:21:40 +0100
commit6546dcda7ee6136d41d56f757fed87f2919c3290 (patch)
tree16627e0db421b18569a31964382091ecbdc43693 /sd/qa
parent5c543f7ae6de63ddf2a563162c296f69f74e7d38 (diff)
fix --disable-pdfium build
Change-Id: I6b7b089ecbd39336f4ea71d541112fd70c95acbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107817 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/qa')
-rw-r--r--sd/qa/unit/SdrPdfImportTest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/qa/unit/SdrPdfImportTest.cxx b/sd/qa/unit/SdrPdfImportTest.cxx
index 657bb416c361..f5e24fd19ede 100644
--- a/sd/qa/unit/SdrPdfImportTest.cxx
+++ b/sd/qa/unit/SdrPdfImportTest.cxx
@@ -15,11 +15,13 @@
#include <comphelper/scopeguard.hxx>
#include <comphelper/propertysequence.hxx>
+#if HAVE_FEATURE_PDFIUM
// Prevent workdir/UnpackedTarball/pdfium/public/fpdfview.h from including windows.h in a way that
// it will define e.g. Yield as a macro:
#include <prewin.h>
#include <postwin.h>
#include <fpdfview.h>
+#endif
#include <unotools/tempfile.hxx>
#include <unotools/mediadescriptor.hxx>