From 2e493d9e754244c8516123ee29812411900b7871 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 25 Oct 2004 18:46:05 +0000 Subject: Patch to support MSVC, contributed by Morten Ofstad llvm-svn: 17219 --- llvm/lib/Support/IsNAN.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Support/IsNAN.cpp') diff --git a/llvm/lib/Support/IsNAN.cpp b/llvm/lib/Support/IsNAN.cpp index 75c813f41aa..f7bb4e3d8e3 100644 --- a/llvm/lib/Support/IsNAN.cpp +++ b/llvm/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 -- cgit v1.2.3