diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:46:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:46:05 +0000 |
commit | 67b6e4e9399c9aaceceda7b6f501d25706f4dbd7 (patch) | |
tree | 17b31aed0c225851184c5bf078464ed90f907065 /lib/Support/IsNAN.cpp | |
parent | 13a166525c97b1e070661b820e660d5f20a11e31 (diff) |
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
Diffstat (limited to 'lib/Support/IsNAN.cpp')
-rw-r--r-- | lib/Support/IsNAN.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/IsNAN.cpp b/lib/Support/IsNAN.cpp index 75c813f41a..f7bb4e3d8e 100644 --- a/lib/Support/IsNAN.cpp +++ b/lib/Support/IsNAN.cpp @@ -19,6 +19,9 @@ #elif HAVE_STD_ISNAN_IN_CMATH # include <cmath> using std::isnan; +#elif defined(_MSC_VER) +#include <float.h> +#define isnan _isnan #else # error "Don't know how to get isnan()" #endif |