* vsnprintf (BSD_vfprintf): use QUADINT macro only when _HAVE_SANE_QUAD_
macro is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7329f4e92c
commit
99606f89c0
@ -1,3 +1,8 @@
|
||||
Wed Nov 24 15:18:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* vsnprintf (BSD_vfprintf): use QUADINT macro only when _HAVE_SANE_QUAD_
|
||||
macro is defined.
|
||||
|
||||
Wed Nov 24 12:47:16 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* vsnprintf (BSD_vfprintf): added VC++ compatible size specifications
|
||||
|
@ -764,12 +764,14 @@ reswitch: switch (ch) {
|
||||
fmt += 2;
|
||||
flags |= LONGINT;
|
||||
}
|
||||
#ifdef _HAVE_SANE_QUAD_
|
||||
else if (*fmt == '6' && *(fmt + 1) == '4') {
|
||||
fmt += 2;
|
||||
flags |= QUADINT;
|
||||
}
|
||||
#endif
|
||||
else
|
||||
#if SIZEOF_SIZE_T == SIZEOF_LONG_LONG
|
||||
#if defined(_HAVE_SANE_QUAD_) && SIZEOF_SIZE_T == SIZEOF_LONG_LONG
|
||||
flags |= QUADINT;
|
||||
#else
|
||||
flags |= LONGINT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user