diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 15:03:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 15:03:51 +0000 |
commit | cea3919ae61ae16e04a5ee5c5394970c3960a0af (patch) | |
tree | 41c74b4c9bc624cc96691bf759a7d177f3345171 /include | |
parent | 150b4efa5510d77fdde7b9692b3c391fbde6ac19 (diff) | |
download | ruby-cea3919ae61ae16e04a5ee5c5394970c3960a0af.tar.gz |
* configure.in (RUBY_CHECK_PRINTF_PREFIX): check for printf format
specifier if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 028f4e9336..6dabba6cf5 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -83,7 +83,7 @@ extern "C" { # endif #endif -#if defined HAVE_UINTPTR_T && 0 +#if defined HAVE_UINTPTR_T typedef uintptr_t VALUE; typedef uintptr_t ID; # define SIGNED_VALUE intptr_t @@ -142,7 +142,8 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1]; # endif #endif -#if defined PRIdPTR +#if defined PRI_PTRDIFF_PREFIX +#elif defined PRIdPTR # define PRI_PTRDIFF_PREFIX "t" #elif SIZEOF_PTRDIFF_T == SIZEOF_INT # define PRI_PTRDIFF_PREFIX @@ -158,7 +159,8 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1]; #define PRIxPTRDIFF PRI_PTRDIFF_PREFIX"x" #define PRIXPTRDIFF PRI_PTRDIFF_PREFIX"X" -#if defined PRIdPTR +#if defined PRI_SIZE_PREFIX +#elif defined PRIdPTR # define PRI_SIZE_PREFIX "z" #elif SIZEOF_SIZE_T == SIZEOF_INT # define PRI_SIZE_PREFIX |