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.";