1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-07-10 05:48:43 +00:00
parent 1b3ba48101
commit 28595a72a9
2 changed files with 10 additions and 2 deletions

8
math.c
View file

@ -193,8 +193,12 @@ math_exp(obj, x)
}
#if defined __CYGWIN__
#define log(x) ((x) < 0.0 ? nan() : log(x))
#define log10(x) ((x) < 0.0 ? nan() : log10(x))
# include <cygwin/version.h>
# if CYGWIN_VERSION_DLL_MAJOR < 1005
# define nan(x) nan()
# endif
# define log(x) ((x) < 0.0 ? nan("") : log(x))
# define log10(x) ((x) < 0.0 ? nan("") : log10(x))
#endif
static VALUE