diff options
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r-- | include/ruby/defines.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 1c07ac07e8..9659db7ef6 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -168,12 +168,16 @@ void xfree(void*); # else # define BDIGIT unsigned short # define SIZEOF_BDIGITS (SIZEOF_LONG/2) +# define SIZEOF_ACTUAL_BDIGIT SIZEOF_LONG # define BDIGIT_DBL unsigned long # define BDIGIT_DBL_SIGNED long # define PRI_BDIGIT_PREFIX "h" # define PRI_BDIGIT_DBL_PREFIX "l" # endif #endif +#ifndef SIZEOF_ACTUAL_BDIGIT +# define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGITS +#endif #ifdef PRI_BDIGIT_PREFIX # define PRIdBDIGIT PRI_BDIGIT_PREFIX"d" |