[PATCH 05/13] Installed header hygiene (BZ#20366): BYTE_ORDER macros.
Carlos O'Donell
carlos@redhat.com
Wed Sep 21 17:56:00 GMT 2016
On 08/29/2016 09:16 PM, Zack Weinberg wrote:
> <endian.h> only defines BYTE_ORDER, BIG_ENDIAN, LITTLE_ENDIAN,
> etc. under __USE_MISC; glibc's headers should use __BYTE_ORDER,
> __BIG_ENDIAN, __LITTLE_ENDIAN, etc. instead.
>
> * inet/netinet/icmp6.h, inet/netinet/ip6.h
> * resolv/arpa/nameser_compat.h:
> Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
It is conceivable that much of what is in these headers is only
usable with __USE_MISC, but it should still get cleaned up.
LGTM.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list