mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
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
This commit is contained in:
parent
00bf2429ad
commit
7391051c20
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user