From 8484857deb143d2a71498d3b8b7a345328dac969 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 11 Nov 2015 21:52:15 +0100 Subject: [PATCH] sha1: Work around older VS compilers --- src/wrbuf_sha1.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wrbuf_sha1.c b/src/wrbuf_sha1.c index 733d8a2..16be5bd 100644 --- a/src/wrbuf_sha1.c +++ b/src/wrbuf_sha1.c @@ -28,7 +28,12 @@ By Steve Reid #define SHA1HANDSOFF +/* VS 2010 and later have stdint.h */ +#if defined(_MSC_VER) && _MSC_VER < 1600 +typedef unsigned int uint32_t; +#else #include +#endif typedef struct { uint32_t state[5]; -- 1.7.10.4