Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From a8e3399487258e53df0fd4a79c570c8d71188bed Mon Sep 17 00:00:00 2001 |
| 2 | From: Takahiro Hashimoto <kenya888.en@gmail.com> |
| 3 | Date: Wed, 27 Apr 2016 00:16:52 +0200 |
| 4 | Subject: [PATCH] Compile with C++11 compilers that don't define isinfinite |
| 5 | |
| 6 | Bug #94761 |
| 7 | --- |
| 8 | poppler/SplashOutputDev.cc | 8 ++++++++ |
| 9 | 1 file changed, 8 insertions(+) |
| 10 | |
| 11 | diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc |
| 12 | index 13d090c..0e50702 100644 |
| 13 | --- a/poppler/SplashOutputDev.cc |
| 14 | +++ b/poppler/SplashOutputDev.cc |
| 15 | @@ -36,6 +36,7 @@ |
| 16 | // Copyright (C) 2014 Richard PALO <richard@netbsd.org> |
| 17 | // Copyright (C) 2015 Tamas Szekeres <szekerest@gmail.com> |
| 18 | // Copyright (C) 2015 Kenji Uno <ku@digitaldolphins.jp> |
| 19 | +// Copyright (C) 2016 Takahiro Hashimoto <kenya888.en@gmail.com> |
| 20 | // |
| 21 | // To see a description of the changes please see the Changelog file that |
| 22 | // came with your tarball or type make ChangeLog if you are building from git |
| 23 | @@ -94,6 +95,13 @@ extern "C" int unlink(char *filename); |
| 24 | #endif |
| 25 | #endif |
| 26 | |
| 27 | +#if __cplusplus > 199711L |
| 28 | +#include <cmath> |
| 29 | +#ifndef isfinite |
| 30 | +#define isfinite(x) std::isfinite(x) |
| 31 | +#endif |
| 32 | +#endif |
| 33 | + |
| 34 | static inline void convertGfxColor(SplashColorPtr dest, |
| 35 | SplashColorMode colorMode, |
| 36 | GfxColorSpace *colorSpace, |
| 37 | -- |
| 38 | 2.8.2 |
| 39 | |