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:
Hiroshi SHIBATAandClaude Opus 5.5 committed 2026-10-03 09:00:26 +09:00
1 parent f3fb013ccc
commit 96c60c478c
1 file changed
-4
Notes: git 2026-10-03 00:01:18 +00:00
-4
View File
@@ -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