summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-10 01:50:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-10 01:50:51 +0000
commit9ea7e27d582990f7628f071a676b6f325e12f7a4 (patch)
tree13c91d9527ae7882851e7fafc171a94e64ff9686 /sprintf.c
parent450680a5d747b828ba43962758c720b26ca68703 (diff)
* sprintf.c (_HAVE_SANE_QUAD_): Don't forget LP64, r30156.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sprintf.c b/sprintf.c
index 25633e0..07bd740 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -1121,10 +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
+#elif SIZEOF_LONG != SIZEOF_LONG_LONG && 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