mercurial/bdiff.c
changeset 2483 5583d5ef257e
parent 2468 1ac0574f1768
child 2543 860e9c83fc59
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;