bswap.h: Add ntohs() and htons() functions
commit17dd827b6e4807e1b0438da2321842b53aca469c
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 12 Oct 2010 18:11:51 +0000 (12 19:11 +0100)
committerAndreas Ericsson <ae@op5.se>
Thu, 28 Oct 2010 17:24:01 +0000 (28 19:24 +0200)
tree073567926ac61f38626aeb4b327942cd2ceb16e2
parent33213449d8b43c67bd8eb02e2f0048ee16e17745
bswap.h: Add ntohs() and htons() functions

Since commit 70aab459, the msvc and MinGW builds have relied on
the built-in implementation of ntohl() and htonl(), rather than
linking the wsock32 library. The new index manipulation code now
calls ntohs()/htons() in addition to ntohl()/htonl(), so we need
to provide a built-in implementation of the 16-bit functions.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
src/bswap.h