From 155ca721221af6b33aa5957a36da2a68dd828ae5 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Jul 2005 02:42:16 +0000 Subject: * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index acfbf64d5..ad24cbd9e 100644 --- a/sprintf.c +++ b/sprintf.c @@ -809,3 +809,10 @@ fmt_setup(buf, c, flags, width, prec) *buf++ = c; *buf = '\0'; } +#if SIZEOF_LONG < SIZEOF_VOIDP +# if SIZEOF_LONG_LONG == SIZEOF_VOIDP +# define _HAVE_SANE_QUAD_ +# define _HAVE_LLP64_ +# define u_quad_t unsigned LONG_LONG +# endif +#endif -- cgit