From: Adam Dickmeiss Date: Wed, 11 Nov 2015 20:52:15 +0000 (+0100) Subject: sha1: Work around older VS compilers X-Git-Tag: v5.15.1~2 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=8484857deb143d2a71498d3b8b7a345328dac969 sha1: Work around older VS compilers --- 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];