From 66a844fd07ca0fd652a20a1973ea242422d4ae6d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 11 Jan 2021 19:12:16 +0900 Subject: Define printf qualifier prefix fallbacks --- include/ruby/internal/arithmetic/off_t.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/ruby/internal/arithmetic/off_t.h') diff --git a/include/ruby/internal/arithmetic/off_t.h b/include/ruby/internal/arithmetic/off_t.h index 84ec807e3d..c1959c61a1 100644 --- a/include/ruby/internal/arithmetic/off_t.h +++ b/include/ruby/internal/arithmetic/off_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 */ -- cgit v1.2.3