summaryrefslogtreecommitdiff
path: root/lcms2mt
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-07-18 16:32:38 +0100
committerChris Liddell <chris.liddell@artifex.com>2018-07-24 13:17:12 +0100
commit3afe2983e8e3c5fd9f290d7af0f7469d944a57ec (patch)
treee630ea20d204ece25df42d8b33417a12e8140cda /lcms2mt
parentf6bcc0dfc173b80fddab4fbf10afb34332ff1112 (diff)
downloadghostpdl-3afe2983e8e3c5fd9f290d7af0f7469d944a57ec.tar.gz
Bug 699543: handle missing isinf() and fpclassify()
Diffstat (limited to 'lcms2mt')
-rw-r--r--lcms2mt/src/cmsplugin.c2
-rw-r--r--lcms2mt/src/lcms2_internal.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/lcms2mt/src/cmsplugin.c b/lcms2mt/src/cmsplugin.c
index 4079e5d78..8ad8538c9 100644
--- a/lcms2mt/src/cmsplugin.c
+++ b/lcms2mt/src/cmsplugin.c
@@ -189,6 +189,8 @@ cmsBool CMSEXPORT _cmsReadFloat32Number(cmsContext ContextID, cmsIOHANDLER* io,
return TRUE;
#elif defined (__BORLANDC__)
return TRUE;
+ #elif !defined(_MSC_VER) && !defined(HAVE_FPCLASSIFY)
+ return TRUE;
#else
// fpclassify() required by C99 (only provided by MSVC >= 1800, VS2013 onwards)
diff --git a/lcms2mt/src/lcms2_internal.h b/lcms2mt/src/lcms2_internal.h
index 62cf8d1d9..7d8db6722 100644
--- a/lcms2mt/src/lcms2_internal.h
+++ b/lcms2mt/src/lcms2_internal.h
@@ -105,6 +105,10 @@
#define isinf(x) (!_finite((x)))
# endif
+#else
+# if !defined(HAVE_ISINF)
+# define isinf(x) (!finite((x)))
+# endif
#endif
// A fast way to convert from/to 16 <-> 8 bits