From 67b6e4e9399c9aaceceda7b6f501d25706f4dbd7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 25 Oct 2004 18:46:05 +0000 Subject: [PATCH] Patch to support MSVC, contributed by Morten Ofstad git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17219 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/IsNAN.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Support/IsNAN.cpp b/lib/Support/IsNAN.cpp index 75c813f41aa..f7bb4e3d8e3 100644 --- a/lib/Support/IsNAN.cpp +++ b/lib/Support/IsNAN.cpp @@ -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