Mercurial > hg
comparison mercurial/mpatch.c @ 411:9e9f7ab43ce2
Add 'other OS' bits to bdiff.c / style cleanups
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Add 'other OS' bits to bdiff.c / style cleanups
manifest hash: 9a0ef60a59af0594f95a2b22de243fe8ef059762
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCuNL0ywK+sNU5EO8RAg+yAKCe8dG411HdZZvsxB25AtfBBApQBQCgnb7O
MGO0xvEBgAtt+3F+VJBkiU4=
=F7r7
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Tue, 21 Jun 2005 18:54:44 -0800 |
parents | 7c678976df3e |
children | 688d03d6997a |
comparison
equal
deleted
inserted
replaced
410:7c678976df3e | 411:9e9f7ab43ce2 |
---|---|
25 #include <string.h> | 25 #include <string.h> |
26 #ifdef _WIN32 | 26 #ifdef _WIN32 |
27 | 27 |
28 typedef unsigned long uint32_t; | 28 typedef unsigned long uint32_t; |
29 | 29 |
30 uint32_t ntohl(uint32_t x) { | 30 static uint32_t ntohl(uint32_t x) |
31 return ((x & 0x000000ffUL) << 24) | | 31 { |
32 ((x & 0x0000ff00UL) << 8) | | 32 return ((x & 0x000000ffUL) << 24) | |
33 ((x & 0x00ff0000UL) >> 8) | | 33 ((x & 0x0000ff00UL) << 8) | |
34 ((x & 0xff000000UL) >> 24); | 34 ((x & 0x00ff0000UL) >> 8) | |
35 ((x & 0xff000000UL) >> 24); | |
35 } | 36 } |
36 | 37 |
37 #else | 38 #else |
38 #include <netinet/in.h> | 39 #include <netinet/in.h> |
39 #include <sys/types.h> | 40 #include <sys/types.h> |