Bug #5159 » solaris-gcc-signbit.diff
complex.c (working copy) | ||
---|---|---|
inline static VALUE
|
||
f_signbit(VALUE x)
|
||
{
|
||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
|
||
extern int signbit(double x);
|
||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||
!defined(signbit)
|
||
extern int signbit(double);
|
||
#endif
|
||
switch (TYPE(x)) {
|
||
case T_FLOAT: {
|
math.c (working copy) | ||
---|---|---|
#include <math.h>
|
||
#include <errno.h>
|
||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
|
||
extern int signbit(double x);
|
||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||
!defined(signbit)
|
||
extern int signbit(double);
|
||
#endif
|
||
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
|