From: Ondřej Surý Date: Mon, 3 Jun 2019 12:13:23 +0000 (+0200) Subject: Revise the Windows section of X-Git-Tag: v9.11.10~21^2~5 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=63666fc9267d5e0913491d09426842eb143160eb;p=thirdparty%2Fbind9.git Revise the Windows section of Add a comment and remove redundant definitions. (cherry picked from commit 84ff6a69639845d52d6e4b9c922d91d873d1fefd) --- diff --git a/lib/isc/include/isc/endian.h b/lib/isc/include/isc/endian.h index f0ceab64171..54421d55d4b 100644 --- a/lib/isc/include/isc/endian.h +++ b/lib/isc/include/isc/endian.h @@ -31,9 +31,13 @@ # endif /* !be16toh */ #elif defined(_WIN32) -/* Windows is always little endian */ -#include +/* + * Windows is always little-endian and has its own byte-swapping routines, so + * use these. + */ + +# include # 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__ /*