From: Chris Lattner Date: Mon, 25 Oct 2004 18:46:05 +0000 (+0000) Subject: Patch to support MSVC, contributed by Morten Ofstad X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=67b6e4e9399c9aaceceda7b6f501d25706f4dbd7;p=oota-llvm.git 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 --- 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