diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -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) |