mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-04-23 18:11:00 -07:00
The definition of signbit in GCC/Opensolaris does not work with -O2.
This commit is contained in:
parent
c8c4c79255
commit
11098e6047
1 changed files with 9 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ typedef unsigned @CL_FIXNUM_TYPE@ cl_hashkey;
|
|||
# define signbit(x) (copysign(1.0,(x)))
|
||||
# endif
|
||||
# ifndef isfinite
|
||||
# ifdef __sun
|
||||
# ifdef __sun__
|
||||
# ifndef ECL_LONG_FLOAT
|
||||
# include <ieeefp.h>
|
||||
# define isfinite(x) finite(x)
|
||||
|
|
@ -510,6 +510,14 @@ typedef unsigned @CL_FIXNUM_TYPE@ cl_hashkey;
|
|||
# endif
|
||||
# endif
|
||||
# endif
|
||||
/*
|
||||
* GCC fails to compile the following code
|
||||
* if (f == 0.0) { if (signbit(f)) ... }
|
||||
*/
|
||||
# if defined(__sun__) && defined(__GNUC__)
|
||||
# undef signbit
|
||||
# define signbit(x) (copysign(1.0,(x)) < 0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBFFI) && defined(ECL_INCLUDE_FFI_H)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue