mercurial/bdiff.c
changeset 472 aa3d592df9b9
parent 464 50da4bb9cab6
child 474 b2ae8283d1a6
child 484 934279f3ca53
--- a/mercurial/bdiff.c	Sat Jun 25 16:17:34 2005 -0800
+++ b/mercurial/bdiff.c	Sat Jun 25 16:18:40 2005 -0800
@@ -12,10 +12,8 @@
 #include <Python.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #ifdef _WIN32
-
-typedef unsigned long uint32_t;
-
 static uint32_t htonl(uint32_t x)
 {
 	return ((x & 0x000000ffUL) << 24) |
@@ -23,11 +21,8 @@
 		((x & 0x00ff0000UL) >>  8) |
 		((x & 0xff000000UL) >> 24);
 }
-
 #else
-  #include <netinet/in.h>
-  #include <sys/types.h>
-  #include <stdint.h>
+#include <netinet/in.h>
 #endif
 
 struct line {