diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-10 01:41:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-10 01:41:02 +0000 |
commit | 450680a5d747b828ba43962758c720b26ca68703 (patch) | |
tree | 341fa8aad0235467963d19ce664b03f5515a28e2 /sprintf.c | |
parent | d10fab3139f862d490ab8df58803bdc380946777 (diff) |
* sprintf.c (_HAVE_SANE_QUAD_): if a certain platform has LONG_LONG in
8 byte, it might be sane quad. [ruby-core:33634]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1121,6 +1121,10 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec) # 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 |