mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Define printf qualifier prefix fallbacks
This commit is contained in:
parent
72549cfe98
commit
66a844fd07
Notes:
git
2021-01-11 21:14:11 +09:00
5 changed files with 26 additions and 0 deletions
|
@ -31,4 +31,8 @@
|
|||
# define NUM2GIDT RB_NUM2LONG
|
||||
#endif
|
||||
|
||||
#ifndef PRI_GIDT_PREFIX
|
||||
# define PRI_GIDT_PREFIX PRI_LONG_PREFIX
|
||||
#endif
|
||||
|
||||
#endif /* RBIMPL_ARITHMETIC_GID_T_H */
|
||||
|
|
|
@ -31,4 +31,8 @@
|
|||
# define MODET2NUM RB_INT2NUM
|
||||
#endif
|
||||
|
||||
#ifndef PRI_MODET_PREFIX
|
||||
# define PRI_MODET_PREFIX PRI_INT_PREFIX
|
||||
#endif
|
||||
|
||||
#endif /* RBIMPL_ARITHMETIC_MODE_T_H */
|
||||
|
|
|
@ -46,4 +46,14 @@
|
|||
# define NUM2OFFT RB_NUM2INT
|
||||
#endif
|
||||
|
||||
#ifdef PRI_OFFT_PREFIX
|
||||
# /* take that. */
|
||||
#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
|
||||
# define PRI_OFFT_PREFIX PRI_LL_PREFIX
|
||||
#elif SIZEOF_OFF_T == SIZEOF_LONG
|
||||
# define PRI_OFFT_PREFIX PRI_LONG_PREFIX
|
||||
#else
|
||||
# define PRI_OFFT_PREFIX PRI_INT_PREFIX
|
||||
#endif
|
||||
|
||||
#endif /* RBIMPL_ARITHMETIC_OFF_T_H */
|
||||
|
|
|
@ -31,4 +31,8 @@
|
|||
# define NUM2PIDT RB_NUM2LONG
|
||||
#endif
|
||||
|
||||
#ifndef PRI_PIDT_PREFIX
|
||||
# define PRI_PIDT_PREFIX PRI_LONG_PREFIX
|
||||
#endif
|
||||
|
||||
#endif /* RBIMPL_ARITHMETIC_PID_T_H */
|
||||
|
|
|
@ -31,4 +31,8 @@
|
|||
# define NUM2UIDT RB_NUM2LONG
|
||||
#endif
|
||||
|
||||
#ifndef PRI_UIDT_PREFIX
|
||||
# define PRI_UIDT_PREFIX PRI_LONG_PREFIX
|
||||
#endif
|
||||
|
||||
#endif /* RBIMPL_ARITHMETIC_UID_T_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue