Some compilers are just too whiny. DEC C doesn't like long long...
authorAndy Polyakov <appro@openssl.org>
Sun, 25 Jul 2004 16:54:08 +0000 (16:54 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 25 Jul 2004 16:54:08 +0000 (16:54 +0000)
crypto/sha/sha.h

index f25512e5e68c93a1a0f8402c2e7123acc62cfddf..a900ad3e95c1601f607707f4f8b3915572f39697 100644 (file)
@@ -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