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 | aaad8388e99c33eba31ea14ad619b6638e1b7bf0 (patch) | |
tree | 96316e40a0adf15aa7fe21440ed7a5810ef762e2 /lib/Support/IsInf.cpp | |
parent | 0ad8fcf936f5db24c8c0de35379672d738f632da (diff) | |
download | external_llvm-aaad8388e99c33eba31ea14ad619b6638e1b7bf0.zip external_llvm-aaad8388e99c33eba31ea14ad619b6638e1b7bf0.tar.gz external_llvm-aaad8388e99c33eba31ea14ad619b6638e1b7bf0.tar.bz2 |
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/IsInf.cpp')
-rw-r--r-- | lib/Support/IsInf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/IsInf.cpp b/lib/Support/IsInf.cpp index 070ed4f..5160110 100644 --- a/lib/Support/IsInf.cpp +++ b/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 |