diff options
Diffstat (limited to 'lib/Support/IsInf.cpp')
-rw-r--r-- | lib/Support/IsInf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/IsInf.cpp b/lib/Support/IsInf.cpp index c50eadff17..7087dd94c1 100644 --- a/lib/Support/IsInf.cpp +++ b/lib/Support/IsInf.cpp @@ -24,6 +24,9 @@ using std::isinf; // apparently this has been a problem with Solaris for years. # include <ieeefp.h> static int isinf(double x) { return !finite(x) && x==x; } +#elif defined(_MSC_VER) +#include <float.h> +#define isinf(X) (!_finite(X)) #else # error "Don't know how to get isinf()" #endif |