diff options
Diffstat (limited to 'third_party/lcms2-2.6/src/cmsplugin.c')
-rw-r--r-- | third_party/lcms2-2.6/src/cmsplugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/lcms2-2.6/src/cmsplugin.c b/third_party/lcms2-2.6/src/cmsplugin.c index b95befbd96..42c4002b55 100644 --- a/third_party/lcms2-2.6/src/cmsplugin.c +++ b/third_party/lcms2-2.6/src/cmsplugin.c @@ -182,7 +182,9 @@ cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n) if (isnan(*n)) return FALSE; } - return TRUE; + + // fpclassify() required by C99 + return (fpclassify(*n) == FP_ZERO) || (fpclassify(*n) == FP_NORMAL); } |