mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 08:25:20 +08:00
Remove the nan() workaround for Cygwin 1.3
CYGWIN_VERSION_DLL_MAJOR is below 1005 only before Cygwin 1.5, which was released in 2003. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f3fb013ccc
commit
96c60c478c
1 file changed
-4
Notes:
git
2026-10-03 00:01:18 +00:00
@@ -486,10 +486,6 @@ math_expm1(VALUE unused_obj, VALUE x)
|
||||
}
|
||||
|
||||
#if defined __CYGWIN__
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user