summaryrefslogtreecommitdiff
path: root/src/utils/endian.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-20 11:23:54 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-20 11:23:54 +0000
commitcac98897c1edfd9477ded7553a2726764c4e2df6 (patch)
tree8d95325541f8d4ca61e8573275f75d9cdadcc042 /src/utils/endian.h
parent6a2a07c99eeea78247971a3c7dd9dc5a03b69434 (diff)
downloadlibparserutils-cac98897c1edfd9477ded7553a2726764c4e2df6.tar.gz
libparserutils-cac98897c1edfd9477ded7553a2726764c4e2df6.tar.bz2
Reasons I hate TCPIPLibs:
1) You need to include sys/types.h yourself 2) You need to ensure that netinet/in.h is included before arpa/inet.h 3) Neither arpa/inet.h nor netinet/in.h define htonl/ntohl -- it's in machine/endian.h which, fortunately, is included from sys/types.h Add a bunch of explicit casts to uint32_t to the results of calls to ntohl/htonl to appease Norcroft's "implicit narrowing cast" warning. svn path=/trunk/libparserutils/; revision=7891
Diffstat (limited to 'src/utils/endian.h')
0 files changed, 0 insertions, 0 deletions