ruby-changes:18135
From: usa <ko1@a...>
Date: Fri, 10 Dec 2010 10:41:08 +0900 (JST)
Subject: [ruby-changes:18135] Ruby:r30156 (trunk): * sprintf.c (_HAVE_SANE_QUAD_): if a certain platform has LONG_LONG in
usa 2010-12-10 10:41:02 +0900 (Fri, 10 Dec 2010) New Revision: 30156 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30156 Log: * sprintf.c (_HAVE_SANE_QUAD_): if a certain platform has LONG_LONG in 8 byte, it might be sane quad. [ruby-core:33634] Modified files: trunk/ChangeLog trunk/sprintf.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30155) +++ ChangeLog (revision 30156) @@ -1,3 +1,8 @@ +Fri Dec 10 10:37:17 2010 NAKAMURA Usaku <usa@r...> + + * sprintf.c (_HAVE_SANE_QUAD_): if a certain platform has LONG_LONG in + 8 byte, it might be sane quad. [ruby-core:33634] + Fri Dec 10 10:07:59 2010 NARUSE, Yui <naruse@r...> * lib/net/http.rb: remove version 1.1 features. Index: sprintf.c =================================================================== --- sprintf.c (revision 30155) +++ sprintf.c (revision 30156) @@ -1121,6 +1121,10 @@ # define quad_t LONG_LONG # define u_quad_t unsigned LONG_LONG # endif +#elif SIZEOF_LONG_LONG == 8 +# define _HAVE_SANE_QUAD_ +# define quad_t LONG_LONG +# define u_quad_t unsigned LONG_LONG #endif #define FLOATING_POINT 1 #define BSD__dtoa ruby_dtoa -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/