diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-03 11:58:11 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-03 11:58:11 +0000 |
commit | 799fafc03b2a654de82d4bd0375dce5537edb88c (patch) | |
tree | 2990220479ede0e4afd78ecb148a9aa06e2e37ec /include | |
parent | d1a7670bafb97ea31e16c2055ca846425d2bad69 (diff) | |
download | ruby-799fafc03b2a654de82d4bd0375dce5537edb88c.tar.gz |
* include/ruby/missing.h, numeric.c (round): moved prototype of round()
from numeric.c to missing.h. (note: round() is C99 feature, so ruby
provides it if not exists in C runtime.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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 7cb2d9233c..1a1aa958ac 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -80,6 +80,10 @@ RUBY_EXTERN int dup2(int, int); RUBY_EXTERN int eaccess(const char*, int); #endif +#ifndef HAVE_ROUND +RUBY_EXTERN double round(double); /* numeric.c */ +#endif + #ifndef HAVE_FINITE RUBY_EXTERN int finite(double); #endif |