diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-29 04:37:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-29 04:37:12 +0000 |
commit | df8c48a3f96131c7feb313be99b179c6f01e4de1 (patch) | |
tree | b71761b48ab131cd3c6891350a17969b6b4a9326 /missing | |
parent | a1d17c590775d2745b730a19d6dde526bf42fa14 (diff) |
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
Diffstat (limited to 'missing')
-rw-r--r-- | missing/crypt.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/missing/crypt.h b/missing/crypt.h index 2b86fb0ca7..7c2642f593 100644 --- a/missing/crypt.h +++ b/missing/crypt.h @@ -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 /* |