diff --git a/expat/Changes b/expat/Changes index 178f1012..b96d6f93 100644 --- a/expat/Changes +++ b/expat/Changes @@ -6,8 +6,10 @@ Release 2.??? ???????????????? Other changes: #49 Fix "==" Bashism in configure script #50 Fix too eager getrandom detection for Debian GNU/kFreeBSD + #51 Address lack of stdint.h in Visual Studio 2003 to 2008 Special thanks to: + Cătălin Răceanu László Böszörményi S. P. Zeidler diff --git a/expat/lib/siphash.h b/expat/lib/siphash.h index 23b56d2a..3c5fef49 100644 --- a/expat/lib/siphash.h +++ b/expat/lib/siphash.h @@ -12,6 +12,9 @@ * -------------------------------------------------------------------------- * HISTORY: * + * 2017-06-18 (Sebastian Pipping) + * - Address lack of stdint.h for Visual Studio 2003 to 2008 + * * 2017-06-10 (Sebastian Pipping) * - Clarify license note in the header * - Address C89 issues: @@ -76,7 +79,15 @@ #define SIPHASH_H #include /* size_t */ -#include /* uint64_t uint32_t uint8_t */ + +#if defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1600) + /* For vs2003/7.1 up to vs2008/9.0; _MSC_VER 1600 is vs2010/10.0 */ + typedef unsigned __int8 uint8_t; + typedef unsigned __int32 uint32_t; + typedef unsigned __int64 uint64_t; +#else + #include /* uint64_t uint32_t uint8_t */ +#endif #define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ( (x) >> (64 - (b))))