summaryrefslogtreecommitdiff
path: root/poppler/SplashOutputDev.cc
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-10-02 16:59:31 +1030
committerAdrian Johnson <ajohnson@redneon.com>2017-10-21 21:05:24 +1030
commit6e3e639c632f8527f9dc75061605e4a55f2faae9 (patch)
treee1c23d02cf4d9b6187f652a81eebe750122e8b6c /poppler/SplashOutputDev.cc
parentf9cef28b504445c7976baa0a51676204f95397fc (diff)
Use <cmath> for isfinite()
Diffstat (limited to 'poppler/SplashOutputDev.cc')
-rw-r--r--poppler/SplashOutputDev.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 5a6d6f5d..72df6810 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -51,7 +51,7 @@
#endif
#include <string.h>
-#include <math.h>
+#include <cmath>
#include "goo/gfile.h"
#include "GlobalParams.h"
#include "Error.h"
@@ -84,25 +84,6 @@ extern "C" int unlink(char *filename);
#endif
#endif
-#ifdef _MSC_VER
-#include <float.h>
-#define isfinite(x) _finite(x)
-#endif
-
-#ifdef __sun
-#include <ieeefp.h>
-#ifndef isfinite
-#define isfinite(x) finite(x)
-#endif
-#endif
-
-#if __cplusplus > 199711L
-#include <cmath>
-#ifndef isfinite
-#define isfinite(x) std::isfinite(x)
-#endif
-#endif
-
static const double s_minLineWidth = 0.0;
static inline void convertGfxColor(SplashColorPtr dest,