[前][次][番号順一覧][スレッド一覧]

ruby-changes:29783

From: nobu <ko1@a...>
Date: Mon, 8 Jul 2013 23:13:02 +0900 (JST)
Subject: [ruby-changes:29783] nobu:r41835 (trunk): numeric.c: for strict ANSI

nobu	2013-07-08 23:12:52 +0900 (Mon, 08 Jul 2013)

  New Revision: 41835

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41835

  Log:
    numeric.c: for strict ANSI
    
    * numeric.c (finite): add declaration for strict ANSI.
      [ruby-core:55312] [Bug #8495]

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41834)
+++ ChangeLog	(revision 41835)
@@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Mon Jul  8 23:12:22 2013  Nobuyoshi Nakada  <nobu@r...>
+Mon Jul  8 23:12:48 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* numeric.c (finite): add declaration for strict ANSI.
+	  [ruby-core:55312] [Bug #8495]
 
 	* thread_win32.c (w32_thread_start_func, thread_start_func_1),
 	  (timer_thread_func): use __stdcall instead of _stdcall which is
Index: numeric.c
===================================================================
--- numeric.c	(revision 41834)
+++ numeric.c	(revision 41835)
@@ -30,6 +30,10 @@ https://github.com/ruby/ruby/blob/trunk/numeric.c#L30
 #include <ieeefp.h>
 #endif
 
+#if defined HAVE_FINITE && !defined finite
+extern int finite(double);
+#endif
+
 /* use IEEE 64bit values if not defined */
 #ifndef FLT_RADIX
 #define FLT_RADIX 2

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]