# HG changeset patch # User Matt Harbison # Date 2020-01-16 04:34:04 # Node ID b4420cea45e81be24b98edef395f39d5ab1f85e0 # Parent 19533e4c3450a1a32cb84e8461273f9c00156a3c sha1dc: avoid including the nonexistent stdint.h with Visual Studio 2008 Differential Revision: https://phab.mercurial-scm.org/D7903 diff --git a/mercurial/thirdparty/sha1dc/lib/ubc_check.c b/mercurial/thirdparty/sha1dc/lib/ubc_check.c --- a/mercurial/thirdparty/sha1dc/lib/ubc_check.c +++ b/mercurial/thirdparty/sha1dc/lib/ubc_check.c @@ -25,8 +25,10 @@ */ #ifndef SHA1DC_NO_STANDARD_INCLUDES +#if !defined(_MSC_VER) || _MSC_VER >= 1600 #include #endif +#endif #ifdef SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C #include SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C #endif diff --git a/mercurial/thirdparty/sha1dc/lib/ubc_check.h b/mercurial/thirdparty/sha1dc/lib/ubc_check.h --- a/mercurial/thirdparty/sha1dc/lib/ubc_check.h +++ b/mercurial/thirdparty/sha1dc/lib/ubc_check.h @@ -28,7 +28,12 @@ extern "C" { #endif #ifndef SHA1DC_NO_STANDARD_INCLUDES +#if !defined(_MSC_VER) || _MSC_VER >= 1600 #include +#else +/* prior to Visual Studio 2010 */ +typedef unsigned __int32 uint32_t; +#endif #endif #define DVMASKSIZE 1