mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Solaris hack for isinf()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dfb3397c5b
commit
0d3ac4cc30
@ -19,6 +19,11 @@
|
|||||||
#elif HAVE_STD_ISINF_IN_CMATH
|
#elif HAVE_STD_ISINF_IN_CMATH
|
||||||
# include <cmath>
|
# include <cmath>
|
||||||
using std::isinf;
|
using std::isinf;
|
||||||
|
#elif HAVE_FINITE_IN_IEEEFP_H
|
||||||
|
// A handy workaround I found at http://www.unixguide.net/sun/faq ...
|
||||||
|
// apparently this has been a problem with Solaris for years.
|
||||||
|
# include <ieeefp.h>
|
||||||
|
static int isinf(double x) { return !finite(x) && x==x; }
|
||||||
#else
|
#else
|
||||||
# error "Don't know how to get isinf()"
|
# error "Don't know how to get isinf()"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user