# HG changeset patch # User mpm@selenic.com # Date 1120204457 28800 # Node ID b460a2fd8bb7855348fafb861cd22de1616d331e # Parent 96ff7dae94f791128c4d0f35fe6407f6762f0930 [PATCH] bdiff/mpatch under MSVC -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] bdiff/mpatch under MSVC From: K Thananchayan MSVC (6.0) environment does not have 'stdint.h' and does not provide `inline' qualifier. The following patch is needed to make mecurial installable under MSVC. manifest hash: a5b64235acced16cb451faa698922559fec4e573 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxPapywK+sNU5EO8RAmRnAKCt9cOASaIsYB6kNUDSIStR1DmY4gCgnXlL Jf0nMmGEkoyXtB0eV+fLzJU= =fKD5 -----END PGP SIGNATURE----- diff -r 96ff7dae94f7 -r b460a2fd8bb7 mercurial/bdiff.c --- a/mercurial/bdiff.c Thu Jun 30 23:51:25 2005 -0800 +++ b/mercurial/bdiff.c Thu Jun 30 23:54:17 2005 -0800 @@ -13,7 +13,12 @@ #include #include #ifdef _WIN32 +#ifdef _MSC_VER +#define inline __inline +typedef unsigned long uint32_t; +#else #include +#endif static uint32_t htonl(uint32_t x) { return ((x & 0x000000ffUL) << 24) | diff -r 96ff7dae94f7 -r b460a2fd8bb7 mercurial/mpatch.c --- a/mercurial/mpatch.c Thu Jun 30 23:51:25 2005 -0800 +++ b/mercurial/mpatch.c Thu Jun 30 23:54:17 2005 -0800 @@ -24,7 +24,12 @@ #include #include #ifdef _WIN32 +#ifdef _MSC_VER +#define inline __inline +typedef unsigned long uint32_t; +#else #include +#endif static uint32_t ntohl(uint32_t x) { return ((x & 0x000000ffUL) << 24) |