Index: lib/Support/IsNAN.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/lib/Support/IsNAN.cpp,v retrieving revision 1.2 diff -u -r1.2 IsNAN.cpp --- lib/Support/IsNAN.cpp 1 Sep 2004 22:55:35 -0000 1.2 +++ lib/Support/IsNAN.cpp 19 Oct 2004 10:11:39 -0000 @@ -19,6 +19,9 @@ #elif HAVE_STD_ISNAN_IN_CMATH # include using std::isnan; +#elif defined(_MSC_VER) +#include +#define isnan _isnan #else # error "Don't know how to get isnan()" #endif Index: lib/Support/IsInf.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/lib/Support/IsInf.cpp,v retrieving revision 1.3 diff -u -r1.3 IsInf.cpp --- lib/Support/IsInf.cpp 1 Sep 2004 22:55:35 -0000 1.3 +++ lib/Support/IsInf.cpp 19 Oct 2004 10:11:39 -0000 @@ -24,6 +24,9 @@ // apparently this has been a problem with Solaris for years. # include static int isinf(double x) { return !finite(x) && x==x; } +#elif defined(_MSC_VER) +#include +#define isinf !_finite #else # error "Don't know how to get isinf()" #endif