mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-14 09:38:40 +00: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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ad8fcf936
commit
aaad8388e9
@ -29,6 +29,10 @@ static int isinf(double x) { return !finite(x) && x==x; }
|
|||||||
// system header /usr/include/math.h
|
// system header /usr/include/math.h
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
static int isinf(double x) { return !finite(x) && x==x; }
|
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
|
#else
|
||||||
# error "Don't know how to get isinf()"
|
# error "Don't know how to get isinf()"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user