projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad8fcf
)
HP-UX system headers make a mess of isinf(), so much so that gcc fixincludes
author
Duraid Madina
<duraid@octopus.com.au>
Mon, 16 May 2005 06:45:57 +0000
(06:45 +0000)
committer
Duraid Madina
<duraid@octopus.com.au>
Mon, 16 May 2005 06:45:57 +0000
(06:45 +0000)
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
lib/Support/IsInf.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/IsInf.cpp
b/lib/Support/IsInf.cpp
index 070ed4fcc1c790afdfb765080bf65fd747372d66..5160110bc2e2828bdece7fdbc5779222b35693f1 100644
(file)
--- 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