mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use LONG_LONG
* missing/crypt.h (B64): use LONG_LONG instead of long long directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a1d17c5907
commit
df8c48a3f9
1 changed files with 12 additions and 1 deletions
|
@ -41,6 +41,17 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef LONG_LONG
|
||||
# if SIZEOF_LONG_LONG > 0
|
||||
# define LONG_LONG long long
|
||||
# elif SIZEOF___INT64 > 0
|
||||
# define HAVE_LONG_LONG 1
|
||||
# define LONG_LONG __int64
|
||||
# undef SIZEOF_LONG_LONG
|
||||
# define SIZEOF_LONG_LONG SIZEOF___INT64
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* define "LONG_IS_32_BITS" only if sizeof(long)==4.
|
||||
* This avoids use of bit fields (your compiler may be sloppy with them).
|
||||
|
@ -56,7 +67,7 @@
|
|||
#if SIZEOF_LONG == 8
|
||||
#define B64 long
|
||||
#elif SIZEOF_LONG_LONG == 8
|
||||
#define B64 long long
|
||||
#define B64 LONG_LONG
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue