File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
jdk/src/share/native/sun/java2d/loops Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,13 @@ TransformInterpFunc *pBicubicFunc = BicubicInterp;
120120/* We reject coordinates not less than 1<<30 so that the distance between */
121121/* any 2 of them is less than 1<<31 which would overflow into the sign */
122122/* bit of a signed long value used to represent fixed point coordinates. */
123+ /// Properly define some macros to accommodate
124+ /// older MSVC versions.
125+ #if defined(_MSC_VER ) && _MSC_VER <= 1700
126+ #include <float.h>
127+ #define isnan _isnan
128+ #define isinf (x ) (!_finite((x)))
129+ #endif
123130#if !defined(_MSC_VER ) && (defined(__STDC_VERSION__ ) && __STDC_VERSION__ <= 199409 )
124131 #if !defined(isinf )
125132 #define isinf (x ) (!finite(x))
You can’t perform that action at this time.
0 commit comments