From 00e35b4f19e4ec1f7d1d3f8bd49573054669f32e Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 1 Jul 2005 06:52:37 +0000 Subject: [PATCH] * missing/erf.c: need to include some headers for some platforms. * win32/win32.c (copysign, scalb): define for compatibility with other platforms. [ruby-dev:26430] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ missing/erf.c | 4 ++++ win32/win32.h | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index d1031e5a5b..c1562e3679 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Jul 1 15:50:12 2005 NAKAMURA Usaku + + * missing/erf.c: need to include some headers for some platforms. + + * win32/win32.c (copysign, scalb): define for compatibility with + other platforms. [ruby-dev:26430] + Fri Jul 1 15:37:42 2005 Yukihiro Matsumoto * missing/crypt.c: modified to make it compilable on platforms diff --git a/missing/erf.c b/missing/erf.c index 94a40c552a..c0ab65f881 100644 --- a/missing/erf.c +++ b/missing/erf.c @@ -31,6 +31,10 @@ static char sccsid[] = "@(#)erf.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ +#include +#include "config.h" +#include "defines.h" + #if defined(vax)||defined(tahoe) /* Deal with different ways to concatenate in cpp */ diff --git a/win32/win32.h b/win32/win32.h index c6aabc42b5..ef4120dd8d 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -216,6 +216,12 @@ extern FILE *rb_w32_fsopen(const char *, const char *, int); #ifndef finite #define finite(x) _finite(x) #endif +#ifndef copysign +#define copysign(a, b) _copysign(a, b) +#endif +#ifndef scalb +#define scalb(a, b) _scalb(a, b) +#endif #endif #if 0 && defined __BORLANDC__