[poppler] poppler/SplashOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Apr 26 22:39:10 UTC 2016
poppler/SplashOutputDev.cc | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit a8e3399487258e53df0fd4a79c570c8d71188bed
Author: Takahiro Hashimoto <kenya888.en at gmail.com>
Date: Wed Apr 27 00:16:52 2016 +0200
Compile with C++11 compilers that don't define isinfinite
Bug #94761
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 13d090c..0e50702 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -36,6 +36,7 @@
// Copyright (C) 2014 Richard PALO <richard at netbsd.org>
// Copyright (C) 2015 Tamas Szekeres <szekerest at gmail.com>
// Copyright (C) 2015 Kenji Uno <ku at digitaldolphins.jp>
+// Copyright (C) 2016 Takahiro Hashimoto <kenya888.en at gmail.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -94,6 +95,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,
More information about the poppler
mailing list