mercurial/mpatch.c
changeset 472 aa3d592df9b9
parent 464 50da4bb9cab6
child 486 098d1f039c18
child 495 e94cebc60d96
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -23,10 +23,8 @@
 #include <Python.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #ifdef _WIN32
-
-typedef unsigned long uint32_t;
-
 static uint32_t ntohl(uint32_t x)
 {
 	return ((x & 0x000000ffUL) << 24) |
@@ -34,11 +32,8 @@ static uint32_t ntohl(uint32_t x)
 		((x & 0x00ff0000UL) >>  8) |
 		((x & 0xff000000UL) >> 24);
 }
-
 #else
-  #include <netinet/in.h>
-  #include <sys/types.h>
-  #include <stdint.h>
+#include <netinet/in.h>
 #endif
 
 static char mpatch_doc[] = "Efficient binary patching.";