diff options
author | Duraid Madina <duraid@octopus.com.au> | 2005-05-16 06:45:57 +0000 |
---|---|---|
committer | Duraid Madina <duraid@octopus.com.au> | 2005-05-16 06:45:57 +0000 |
commit | 33464ad3a2e65399864da349c1f58982f79c94b7 (patch) | |
tree | 8bbedd4d10d234d24fb704c1f6448200c7b4ba3e /llvm/lib/Support/IsInf.cpp | |
parent | 60c9a3c1710647c64574fa2fcb3837a39e4f3d62 (diff) | |
download | bcm5719-llvm-33464ad3a2e65399864da349c1f58982f79c94b7.tar.gz bcm5719-llvm-33464ad3a2e65399864da349c1f58982f79c94b7.zip |
HP-UX system headers make a mess of isinf(), so much so that gcc fixincludes
can't patch it up for c++ (works in C though)
llvm-svn: 22079
Diffstat (limited to 'llvm/lib/Support/IsInf.cpp')
-rw-r--r-- | llvm/lib/Support/IsInf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/IsInf.cpp b/llvm/lib/Support/IsInf.cpp index 070ed4fcc1c..5160110bc2e 100644 --- a/llvm/lib/Support/IsInf.cpp +++ b/llvm/lib/Support/IsInf.cpp @@ -29,6 +29,10 @@ static int isinf(double x) { return !finite(x) && x==x; } // system header /usr/include/math.h # include <math.h> static int isinf(double x) { return !finite(x) && x==x; } +#elif defined(__hpux) +// HP-UX is "special" +#include <math.h> +static int isinf(double x) { return ((x)==INFINITY)||((x)==-INFINITY); } #else # error "Don't know how to get isinf()" #endif |