diff -r 8d821a173e4e -r e501f45b0eba mercurial/parsers.c --- a/mercurial/parsers.c Tue Apr 10 12:07:09 2012 -0500 +++ b/mercurial/parsers.c Tue Apr 10 12:07:14 2012 -0500 @@ -135,33 +135,6 @@ return NULL; } -#ifdef _WIN32 -#ifdef _MSC_VER -/* msvc 6.0 has problems */ -#define inline __inline -typedef unsigned long uint32_t; -typedef unsigned __int64 uint64_t; -#else -#include -#endif -static uint32_t ntohl(uint32_t x) -{ - return ((x & 0x000000ffUL) << 24) | - ((x & 0x0000ff00UL) << 8) | - ((x & 0x00ff0000UL) >> 8) | - ((x & 0xff000000UL) >> 24); -} -#else -/* not windows */ -#include -#if defined __BEOS__ && !defined __HAIKU__ -#include -#else -#include -#endif -#include -#endif - static PyObject *parse_dirstate(PyObject *self, PyObject *args) { PyObject *dmap, *cmap, *parents = NULL, *ret = NULL;