diff options
author | miod <> | 2014-04-28 21:14:50 +0000 |
---|---|---|
committer | miod <> | 2014-04-28 21:14:50 +0000 |
commit | 5c80b04ad533e531e552e7e775b6df48dd1fcecc (patch) | |
tree | c38bc7b3eb96fe7a9e0e0ce7390f75e6feb8fc91 /src/lib/libcrypto/sha | |
parent | 491ced77fa72fcec5b39051ff934a325810e0dd9 (diff) | |
download | openbsd-5c80b04ad533e531e552e7e775b6df48dd1fcecc.tar.gz openbsd-5c80b04ad533e531e552e7e775b6df48dd1fcecc.tar.bz2 openbsd-5c80b04ad533e531e552e7e775b6df48dd1fcecc.zip |
Remove WIN32, WIN64 and MINGW32 tentacles.
Also check for _LP64 rather than __arch64__ (the former being more reliable
than __LP64__ or __arch64__) to tell 64-bit int platforms apart from 32-bit
int platforms.
Loosely based upon a diff from Martijn van Duren on tech@
Diffstat (limited to 'src/lib/libcrypto/sha')
-rw-r--r-- | src/lib/libcrypto/sha/sha.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index 435352c208..c0c3c16c08 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
@@ -154,10 +154,7 @@ void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); | |||
154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a | 154 | #define SHA512_CBLOCK (SHA_LBLOCK*8) /* SHA-512 treats input data as a |
155 | * contiguous array of 64 bit | 155 | * contiguous array of 64 bit |
156 | * wide big-endian values. */ | 156 | * wide big-endian values. */ |
157 | #if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) | 157 | #if defined(_LP64) |
158 | #define SHA_LONG64 unsigned __int64 | ||
159 | #define U64(C) C##UI64 | ||
160 | #elif defined(__arch64__) | ||
161 | #define SHA_LONG64 unsigned long | 158 | #define SHA_LONG64 unsigned long |
162 | #define U64(C) C##UL | 159 | #define U64(C) C##UL |
163 | #else | 160 | #else |