mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:20:01 -04:00
Revise the Windows section of <isc/endian.h>
Add a comment and remove redundant definitions.
This commit is contained in:
parent
c727a31eab
commit
84ff6a6963
1 changed files with 6 additions and 7 deletions
|
|
@ -31,9 +31,13 @@
|
|||
# endif /* !be16toh */
|
||||
|
||||
#elif defined(_WIN32)
|
||||
/* Windows is always little endian */
|
||||
|
||||
#include <stdlib.h>
|
||||
/*
|
||||
* Windows is always little-endian and has its own byte-swapping routines, so
|
||||
* use these.
|
||||
*/
|
||||
|
||||
# include <stdlib.h>
|
||||
|
||||
# define htobe16(x) _byteswap_ushort(x)
|
||||
# define htole16(x) (x)
|
||||
|
|
@ -50,11 +54,6 @@
|
|||
# define be64toh(x) _byteswap_uint64(x)
|
||||
# define le64toh(x) (x)
|
||||
|
||||
# define __BYTE_ORDER BYTE_ORDER
|
||||
# define __BIG_ENDIAN BIG_ENDIAN
|
||||
# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
||||
# define __PDP_ENDIAN PDP_ENDIAN
|
||||
|
||||
#elif defined __APPLE__
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue