summaryrefslogtreecommitdiffstats
path: root/deps/poppler/patches
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-11-01 22:34:06 +0100
committer Eric Hameleers <alien@slackware.com>2016-11-01 22:34:06 +0100
commita733c671ae2cd0d41fb6542bf78be4ff1dbe2df2 (patch)
tree1d18d6bf9f32701f75ab98b8dfef4b8d5f9f73b5 /deps/poppler/patches
parentdb67df3cf8a58828960ce535166c208dc73725f7 (diff)
downloadktown-a733c671ae2cd0d41fb6542bf78be4ff1dbe2df2.tar.gz
ktown-a733c671ae2cd0d41fb6542bf78be4ff1dbe2df2.tar.xz
deps: updated for KDE 5_16.08
Diffstat (limited to 'deps/poppler/patches')
-rw-r--r--deps/poppler/patches/poppler_cpp11.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/poppler/patches/poppler_cpp11.patch b/deps/poppler/patches/poppler_cpp11.patch
new file mode 100644
index 0000000..2eeedd1
--- /dev/null
+++ b/deps/poppler/patches/poppler_cpp11.patch
@@ -0,0 +1,18 @@
+diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
+index 13d090c..9803d38 100644
+--- a/poppler/SplashOutputDev.cc
++++ b/poppler/SplashOutputDev.cc
+@@ -94,6 +94,13 @@ extern "C" int unlink(char *filename);
+ #endif
+ #endif
+
++#if __cplusplus > 199711L
++#include <cmath>
++#ifndef isfinite
++#define isfinite(x) std::isfinite(x)
++#endif
++#endif
++
+ static inline void convertGfxColor(SplashColorPtr dest,
+ SplashColorMode colorMode,
+ GfxColorSpace *colorSpace,