This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit 93c97e4b1c08527052c202777052a7604e05ea36 Author: Brian Neradt <brian.ner...@gmail.com> AuthorDate: Mon Apr 15 16:43:59 2024 +0000 Use GCC stardard pre-defined macros to determine endianess. (#11186) --- code/include/swoc/swoc_ip_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/include/swoc/swoc_ip_util.h b/code/include/swoc/swoc_ip_util.h index 78016bf..40d6074 100644 --- a/code/include/swoc/swoc_ip_util.h +++ b/code/include/swoc/swoc_ip_util.h @@ -65,7 +65,7 @@ inline bool is_private_network_order(in6_addr const& addr) { return (addr.s6_addr[0] & 0xFE) == 0xFC; // fc00::/7 } -#if BYTE_ORDER == LITTLE_ENDIAN +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ inline bool is_loopback_network_order(in_addr_t addr) { return (addr & 0xFF) == 0x7F;