Project

General

Profile

Bug #5159 » solaris-gcc-signbit.diff

ngoto (Naohisa Goto), 08/05/2011 03:43 PM

View differences:

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]))
    (1-1/1)