# HG changeset patch # User aivanov # Date 1468311450 -10800 # Node ID 12390e0aabc4e65df6091a0e5d111e838b0fb506 # Parent 7d3cca7fc05d70a4bbc500f73211aa7d70755e48 8160934: isnan() is not available on older MSVC compilers Reviewed-by: prr, mschoene diff -r 7d3cca7fc05d -r 12390e0aabc4 jdk/src/java.desktop/share/native/liblcms/cmsintrp.c --- 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