8160934: isnan() is not available on older MSVC compilers
Reviewed-by: prr, mschoene
--- a/jdk/src/java.desktop/share/native/liblcms/cmsintrp.c Mon Jul 11 21:46:07 2016 +0300
+++ b/jdk/src/java.desktop/share/native/liblcms/cmsintrp.c Tue Jul 12 11:17:30 2016 +0300
@@ -244,7 +244,7 @@
// To prevent out of bounds indexing
cmsINLINE cmsFloat32Number fclamp(cmsFloat32Number v)
{
- return v < 0.0f || isnan(v) ? 0.0f : (v > 1.0f ? 1.0f : v);
+ return v < 0.0f || v != v ? 0.0f : (v > 1.0f ? 1.0f : v);
}
// Floating-point version of 1D interpolation