# HG changeset patch # User Vadim Gelfer # Date 2006-06-21 00:51:39 # Node ID 1ac0574f1768c14935900307ba1d2251d2699312 # Parent 4e78dc71d946f1712563e11f85322717b8761b7a mac os x: fixes for 10.2 from chris monson diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -10,6 +10,7 @@ */ #include +#include #include #include diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -23,13 +23,15 @@ #include #include #include + #ifdef _WIN32 -#ifdef _MSC_VER -#define inline __inline +# ifdef _MSC_VER +/* msvc 6.0 has problems */ +# define inline __inline typedef unsigned long uint32_t; -#else -#include -#endif +# else +# include +# endif static uint32_t ntohl(uint32_t x) { return ((x & 0x000000ffUL) << 24) | @@ -38,8 +40,10 @@ static uint32_t ntohl(uint32_t x) ((x & 0xff000000UL) >> 24); } #else -#include -#include +/* not windows */ +# include +# include +# include #endif static char mpatch_doc[] = "Efficient binary patching.";