From cea3919ae61ae16e04a5ee5c5394970c3960a0af Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 12 Oct 2010 15:03:51 +0000 Subject: * 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 --- include/ruby/ruby.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/ruby/ruby.h') 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 -- cgit v1.2.3