From 56d9e99c38f157d24661b506a686a3ffbfb6d134 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jun 2016 04:37:12 +0000 Subject: 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 --- missing/crypt.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'missing/crypt.h') 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 /* -- cgit v1.2.3