mercurial/mpatch.c
changeset 486 098d1f039c18
parent 472 aa3d592df9b9
child 495 e94cebc60d96
equal deleted inserted replaced
485:c5705ab9cebd 486:098d1f039c18
    21 */
    21 */
    22 
    22 
    23 #include <Python.h>
    23 #include <Python.h>
    24 #include <stdlib.h>
    24 #include <stdlib.h>
    25 #include <string.h>
    25 #include <string.h>
    26 #include <stdint.h>
       
    27 #ifdef _WIN32
    26 #ifdef _WIN32
    28 static uint32_t ntohl(uint32_t x)
    27 static uint32_t ntohl(uint32_t x)
    29 {
    28 {
    30 	return ((x & 0x000000ffUL) << 24) |
    29 	return ((x & 0x000000ffUL) << 24) |
    31 		((x & 0x0000ff00UL) <<  8) |
    30 		((x & 0x0000ff00UL) <<  8) |