Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nobu committed Jun 29, 2016
1 parent a1d17c5 commit df8c48a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion missing/crypt.h
Expand Up @@ -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).
Expand All @@ -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

/*
Expand Down

0 comments on commit df8c48a

Please sign in to comment.