mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
CFLAGS="-std=gnu99". [ruby-dev:44355] fix [Bug #5159] * math.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1ded4dbd11
commit
700aeee754
3 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Fri Aug 5 15:57:10 2011 Naohisa Goto <ngotogenome@gmail.com>
|
||||||
|
|
||||||
|
* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
|
||||||
|
CFLAGS="-std=gnu99". [ruby-dev:44355] fix [Bug #5159]
|
||||||
|
|
||||||
|
* math.c: ditto.
|
||||||
|
|
||||||
Fri Aug 5 15:55:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Aug 5 15:55:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_object.rb: tests that respond_to? returns false.
|
* test/ruby/test_object.rb: tests that respond_to? returns false.
|
||||||
|
|
|
@ -1173,8 +1173,9 @@ nucomp_eql_p(VALUE self, VALUE other)
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
f_signbit(VALUE x)
|
f_signbit(VALUE x)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
|
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||||||
extern int signbit(double x);
|
!defined(signbit)
|
||||||
|
extern int signbit(double);
|
||||||
#endif
|
#endif
|
||||||
switch (TYPE(x)) {
|
switch (TYPE(x)) {
|
||||||
case T_FLOAT: {
|
case T_FLOAT: {
|
||||||
|
|
5
math.c
5
math.c
|
@ -14,8 +14,9 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
|
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||||||
extern int signbit(double x);
|
!defined(signbit)
|
||||||
|
extern int signbit(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
|
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue