diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2012-09-23 08:39:45 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2012-09-23 08:39:45 +1000 |
commit | 0847080df9eda3e1f95cc8131a77db83b90bde3a (patch) | |
tree | f81c5131b4d8fd6a388385a61f465dc0515724a7 | |
parent | d2e583a99eca00082f2e3a973ab201aeb3f1a32b (diff) | |
download | ffi-0847080df9eda3e1f95cc8131a77db83b90bde3a.tar.gz |
Fix issue #227. Patch from Petro Sasnyk <psasnyk@softserveinc.com>
-rw-r--r-- | ext/ffi_c/LongDouble.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ffi_c/LongDouble.c b/ext/ffi_c/LongDouble.c index ae394c8..a21883a 100644 --- a/ext/ffi_c/LongDouble.c +++ b/ext/ffi_c/LongDouble.c @@ -3,6 +3,10 @@ #include <stdarg.h> #include <float.h> +#if defined (__CYGWIN__) || defined(__INTERIX) +# define strtold(str, endptr) ((long double) strtod((str), (endptr))) +#endif /* defined (__CYGWIN__) */ + static VALUE rb_cBigDecimal = Qnil; static VALUE bigdecimal_load(VALUE unused); static VALUE bigdecimal_failed(VALUE value); |