8000 * math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0. bac… · documenting-ruby/ruby@cd12097 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd12097

Browse files
author
nahi
committed
* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0. backport from
1.8. Thu Jul 10 14:42:02 2003 WATANABE Hirofumi <eban@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@4296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4a0152e commit cd12097

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sun Aug 3 15:56:27 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
2+
3+
* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0.
4+
backport from 1.8.
5+
Thu Jul 10 14:42:02 2003 WATANABE Hirofumi <eban@ruby-lang.org>
6+
17
Sun Jul 27 03:10:31 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
28

39
* io.c (io_reopen): avoid dup2() equal handles not to close itself and

math.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ math_exp(obj, x)
9898
}
9999

100100
#if defined __CYGWIN__
101-
#define log(x) ((x) < 0.0 ? nan() : log(x))
102-
#define log10(x) ((x) < 0.0 ? nan() : log10(x))
101+
# include <cygwin/version.h>
102+
# if CYGWIN_VERSION_DLL_MAJOR < 1005
103+
# define nan(x) nan()
104+
# endif
105+
# define log(x) ((x) < 0.0 ? nan("") : log(x))
106+
# define log10(x) ((x) < 0.0 ? nan("") : log10(x))
103107
#endif
104108

105109
static VALUE

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#define RUBY_VERSION "1.6.8"
2-
#define RUBY_RELEASE_DATE "2003-07-27"
2+
#define RUBY_RELEASE_DATE "2003-08-03"
33
#define RUBY_VERSION_CODE 168
4-
#define RUBY_RELEASE_CODE 20030727
4+
#define RUBY_RELEASE_CODE 20030803
55

66
#define RUBY_VERSION_MAJOR 1
77
#define RUBY_VERSION_MINOR 6
88
#define RUBY_VERSION_TEENY 8
99
#define RUBY_RELEASE_YEAR 2003
10-
#define RUBY_RELEASE_MONTH 7
11-
#define RUBY_RELEASE_DAY 27
10+
#define RUBY_RELEASE_MONTH 8
11+
#define RUBY_RELEASE_DAY 3

0 commit comments

Comments
 (0)
0