Skip to content

Commit b4fc8e7

Browse files
committed
8337312: [8u] Windows x86 VS2010 build broken by JDK-8320097
Reviewed-by: phh
1 parent 09bab6e commit b4fc8e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jdk/src/share/native/sun/java2d/loops/TransformHelper.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)