From 2fcf435d738e3fae7f11ed888568652583ebf871 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 25 Jul 2004 16:54:08 +0000 Subject: [PATCH] Some compilers are just too whiny. DEC C doesn't like long long... --- crypto/sha/sha.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/sha/sha.h b/crypto/sha/sha.h index f25512e5e6..a900ad3e95 100644 --- a/crypto/sha/sha.h +++ b/crypto/sha/sha.h @@ -101,7 +101,7 @@ typedef struct SHAstate_st SHA_LONG h0,h1,h2,h3,h4; SHA_LONG Nl,Nh; SHA_LONG data[SHA_LBLOCK]; - int num; + unsigned int num; } SHA_CTX; #ifndef OPENSSL_NO_SHA0 @@ -159,6 +159,9 @@ void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) #define SHA_LONG64 unsigned __int64 #define U64(C) C##UI64 +#elif defined(__arch64__) +#define SHA_LONG64 unsigned long +#define U64(C) C##UL #else #define SHA_LONG64 unsigned long long #define U64(C) C##ULL -- 2.40.0