Skip to content

Commit

Permalink
8337312: [8u] Windows x86 VS2010 build broken by JDK-8320097
Browse files Browse the repository at this point in the history
Reviewed-by: phh
  • Loading branch information
gnu-andrew committed Aug 14, 2024
1 parent 09bab6e commit b4fc8e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jdk/src/share/native/sun/java2d/loops/TransformHelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ TransformInterpFunc *pBicubicFunc = BicubicInterp;
/* We reject coordinates not less than 1<<30 so that the distance between */
/* any 2 of them is less than 1<<31 which would overflow into the sign */
/* bit of a signed long value used to represent fixed point coordinates. */
/// Properly define some macros to accommodate
/// older MSVC versions.
#if defined(_MSC_VER) && _MSC_VER <= 1700
#include <float.h>
#define isnan _isnan
#define isinf(x) (!_finite((x)))
#endif
#if !defined(_MSC_VER) && (defined(__STDC_VERSION__) && __STDC_VERSION__ <= 199409)
#if !defined(isinf)
#define isinf(x) (!finite(x))
Expand Down

1 comment on commit b4fc8e7

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.