summaryrefslogtreecommitdiffstats
path: root/deps/poppler/patches/poppler_cpp11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'deps/poppler/patches/poppler_cpp11.patch')
-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,