* include/ruby/ruby.h (PRE_TIMET_PREFIX): define if configure doesn't
defines it. [ruby-core:29190] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
171131061e
commit
c530b9d60a
@ -129,6 +129,16 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
|
||||
# define PRI_VALUE_PREFIX ""
|
||||
#endif
|
||||
|
||||
#ifndef PRI_TIMET_PREFIX
|
||||
# if SIZEOF_TIME_T == SIZEOF_INT
|
||||
# define PRI_TIMET_PREFIX
|
||||
# elif SIZEOF_TIME_T == SIZEOF_LONG
|
||||
# define PRI_TIMET_PREFIX "l"
|
||||
# elif SIZEOF_TIME_T == SIZEOF_LONG_LONG
|
||||
# define PRI_TIMET_PREFIX "ll"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined PRIdPTR
|
||||
# define PRI_PTRDIFF_PREFIX "t"
|
||||
#elif SIZEOF_PTRDIFF_T == SIZEOF_INT
|
||||
|
Loading…
x
Reference in New Issue
Block a user