solaris-gcc-signbit.diff

Naohisa Goto, 08/05/2011 03:43 PM

Download (1002 Bytes)

View differences:

complex.c (working copy)
1173 1173
inline static VALUE
1174 1174
f_signbit(VALUE x)
1175 1175
{
1176
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
1177
    extern int signbit(double x);
1176
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
1177
    !defined(signbit)
1178
    extern int signbit(double);
1178 1179
#endif
1179 1180
    switch (TYPE(x)) {
1180 1181
      case T_FLOAT: {
math.c (working copy)
14 14
#include <math.h>
15 15
#include <errno.h>
16 16

  
17
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
18
    extern int signbit(double x);
17
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
18
    !defined(signbit)
19
    extern int signbit(double);
19 20
#endif
20 21

  
21 22
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))