diff options
author | Andy Polyakov <appro@openssl.org> | 2008-01-05 21:28:53 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-01-05 21:28:53 +0000 |
commit | 085ea803714f148b160499d289616af4c16fa089 (patch) | |
tree | 69f30f4f267794fc45fd30b0b8b6d4ef6d7fad91 /engines/ccgost/gosthash.h | |
parent | ab0ff062052bc43085a78b4d4380803f752fe92b (diff) |
engine/ccgost Win32 portability fixes.
Diffstat (limited to 'engines/ccgost/gosthash.h')
-rw-r--r-- | engines/ccgost/gosthash.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/ccgost/gosthash.h b/engines/ccgost/gosthash.h index bd26aeb276..4a2e441ece 100644 --- a/engines/ccgost/gosthash.h +++ b/engines/ccgost/gosthash.h @@ -10,8 +10,17 @@ #define GOSTHASH_H #include "gost89.h" #include <stdlib.h> + +#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) +typedef __int64 ghosthash_len; +#elif defined(__arch64__) +typedef long ghosthash_len; +#else +typedef long long ghosthash_len; +#endif + typedef struct gost_hash_ctx { - long long len; + ghosthash_len len; gost_ctx *cipher_ctx; int left; byte H[32]; |