diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:47:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:47:10 +0000 |
commit | d3642d720ce0149b158046bd79677e536d9c0f31 (patch) | |
tree | 07768dedd59d7cbd8b0c0063ed9726bc176cb9a3 | |
parent | 2e493d9e754244c8516123ee29812411900b7871 (diff) | |
download | bcm5719-llvm-d3642d720ce0149b158046bd79677e536d9c0f31.tar.gz bcm5719-llvm-d3642d720ce0149b158046bd79677e536d9c0f31.zip |
Patch to support MSVC, contributed by Morten Ofstad
llvm-svn: 17220
-rw-r--r-- | llvm/lib/Support/IsInf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/IsInf.cpp b/llvm/lib/Support/IsInf.cpp index c50eadff179..7087dd94c14 100644 --- a/llvm/lib/Support/IsInf.cpp +++ b/llvm/lib/Support/IsInf.cpp @@ -24,6 +24,9 @@ using std::isinf; // apparently this has been a problem with Solaris for years. # include <ieeefp.h> static int isinf(double x) { return !finite(x) && x==x; } +#elif defined(_MSC_VER) +#include <float.h> +#define isinf(X) (!_finite(X)) #else # error "Don't know how to get isinf()" #endif |