D7903: sha1dc: avoid including the nonexistent stdint.h with Visual Studio 2008

Yuya Nishihara yuya at tcha.org
Thu Jan 16 09:36:23 EST 2020


>  #ifndef SHA1DC_NO_STANDARD_INCLUDES
> +#if !defined(_MSC_VER) || _MSC_VER >= 1600
>  #include <stdint.h>
> +#else
> +/* prior to Visual Studio 2010 */
> +typedef unsigned int uint32_t;

`unsigned __int32` for consistency.


More information about the Mercurial-devel mailing list