diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-10 05:48:43 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-10 05:48:43 +0000 |
commit | 28595a72a9d0f90d75d9d64ae1203c80e576a895 (patch) | |
tree | 512044c52381b6ba16f4e725e7d2d5c9a421e2f2 /math.c | |
parent | 1b3ba48101f37b5d48b3f2837e393ac5a2179a89 (diff) |
* 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
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |