diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 00:37:10 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 00:37:10 +0000 |
commit | 63fee735002b34d37598d4830ef35073202dda58 (patch) | |
tree | b6d50c223905f199bdd237b639109d4c0dcde0f1 /include/ruby | |
parent | ddd155842fb4fd96a028836d926bae7501cbd985 (diff) | |
download | ruby-63fee735002b34d37598d4830ef35073202dda58.tar.gz |
* configure.in: Check nextafter() availability.
* include/ruby/missing.h (nextafter): New optional declaration.
* missing/nextafter.c: New file.
* numeric.c: Float#next_float and Float#prev_float implemented.
[ruby-core:62562] [Feature #9834]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/missing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 5dba4edda7..53e0833814 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -168,6 +168,10 @@ RUBY_EXTERN int isnan(double); # endif #endif +#ifndef HAVE_NEXTAFTER +RUBY_EXTERN double nextafter(double x, double y); +#endif + /* #ifndef HAVE_MEMCMP RUBY_EXTERN int memcmp(const void *, const void *, size_t); |