ruby-changes:19864
From: usa <ko1@a...>
Date: Fri, 3 Jun 2011 20:58:17 +0900 (JST)
Subject: [ruby-changes:19864] usa:r31911 (trunk): * include/ruby/missing.h, numeric.c (round): moved prototype of round()
usa 2011-06-03 20:58:11 +0900 (Fri, 03 Jun 2011) New Revision: 31911 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31911 Log: * 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.) Modified files: trunk/ChangeLog trunk/include/ruby/missing.h trunk/numeric.c Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 31910) +++ include/ruby/missing.h (revision 31911) @@ -80,6 +80,10 @@ 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 31910) +++ ChangeLog (revision 31911) @@ -1,3 +1,9 @@ +Fri Jun 3 20:56:40 2011 NAKAMURA Usaku <usa@r...> + + * 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.) + Fri Jun 3 19:58:14 2011 NAKAMURA Usaku <usa@r...> * io.c (io_fflush): windows -- call fsync() only when the FD is tied to Index: numeric.c =================================================================== --- numeric.c (revision 31910) +++ numeric.c (revision 31911) @@ -78,8 +78,6 @@ const unsigned char rb_nan[] = "\x7f\xc0\x00\x00"; #endif -extern double round(double); - #ifndef HAVE_ROUND double round(double x) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/