comparison mercurial/bdiff.c @ 2483:5583d5ef257e

Fixed conditional include of stdint.h for windows/msvc6/python2.3 environment.
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Thu, 22 Jun 2006 13:19:52 +0900
parents 1ac0574f1768
children 860e9c83fc59
comparison
equal deleted inserted replaced
2482:818ebebc4554 2483:5583d5ef257e
8 8
9 Based roughly on Python difflib 9 Based roughly on Python difflib
10 */ 10 */
11 11
12 #include <Python.h> 12 #include <Python.h>
13 #include <stdint.h>
14 #include <stdlib.h> 13 #include <stdlib.h>
15 #include <string.h> 14 #include <string.h>
16 15
17 #ifdef __hpux 16 #ifdef __hpux
18 #define inline 17 #define inline
37 ((x & 0xff000000UL) >> 24); 36 ((x & 0xff000000UL) >> 24);
38 } 37 }
39 #else 38 #else
40 #include <sys/types.h> 39 #include <sys/types.h>
41 #include <arpa/inet.h> 40 #include <arpa/inet.h>
41 #include <stdint.h>
42 #endif 42 #endif
43 43
44 struct line { 44 struct line {
45 int h, len, n, e; 45 int h, len, n, e;
46 const char *l; 46 const char *l;