mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
Include inttypes.h instead of stdint.h (fixes issue299)
Many projects use inttypes.h, too. stdint.h isn't available everywhere, e.g. on some versions of Solaris, while inttypes.h is available everywhere where stdint.h is.
This commit is contained in:
parent
1a37a0b91c
commit
5088fdd568
@ -38,7 +38,7 @@ static uint32_t htonl(uint32_t x)
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
struct line {
|
||||
|
@ -43,7 +43,7 @@ static uint32_t ntohl(uint32_t x)
|
||||
/* not windows */
|
||||
# include <sys/types.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <stdint.h>
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
static char mpatch_doc[] = "Efficient binary patching.";
|
||||
|
Loading…
Reference in New Issue
Block a user