mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
defines.h: hack for the case sizeof(short) == sizeof(int)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
12e312c5e4
commit
3dc5049a49
1 changed files with 6 additions and 1 deletions
|
@ -74,11 +74,16 @@ void xfree _((void*));
|
||||||
# define SIZEOF_BDIGITS SIZEOF_INT
|
# define SIZEOF_BDIGITS SIZEOF_INT
|
||||||
# define BDIGIT_DBL unsigned long
|
# define BDIGIT_DBL unsigned long
|
||||||
# define BDIGIT_DBL_SIGNED long
|
# define BDIGIT_DBL_SIGNED long
|
||||||
#else
|
#elif SIZEOF_SHORT*2 <= SIZEOF_LONG
|
||||||
# define BDIGIT unsigned short
|
# define BDIGIT unsigned short
|
||||||
# define SIZEOF_BDIGITS SIZEOF_SHORT
|
# define SIZEOF_BDIGITS SIZEOF_SHORT
|
||||||
# define BDIGIT_DBL unsigned long
|
# define BDIGIT_DBL unsigned long
|
||||||
# define BDIGIT_DBL_SIGNED long
|
# define BDIGIT_DBL_SIGNED long
|
||||||
|
#else
|
||||||
|
# define BDIGIT unsigned short
|
||||||
|
# define SIZEOF_BDIGITS (SIZEOF_LONG/2)
|
||||||
|
# define BDIGIT_DBL unsigned long
|
||||||
|
# define BDIGIT_DBL_SIGNED long
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* define RUBY_USE_EUC/SJIS for default kanji-code */
|
/* define RUBY_USE_EUC/SJIS for default kanji-code */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue