mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d1a7670baf
commit
799fafc03b
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue