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:
parent
1b3ba48101
commit
28595a72a9
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Jul 10 14:42:02 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0.
|
||||||
|
|
||||||
Wed Jul 9 23:50:46 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Wed Jul 9 23:50:46 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* regex.c (mbctab_sjis): 0x80 is not shift jis first byte.
|
* regex.c (mbctab_sjis): 0x80 is not shift jis first byte.
|
||||||
|
|
8
math.c
8
math.c
|
@ -193,8 +193,12 @@ math_exp(obj, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined __CYGWIN__
|
#if defined __CYGWIN__
|
||||||
#define log(x) ((x) < 0.0 ? nan() : log(x))
|
# include <cygwin/version.h>
|
||||||
#define log10(x) ((x) < 0.0 ? nan() : log10(x))
|
# 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
|
#endif
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Reference in a new issue