From 4a53d0ba819c5e944ee6cfdb51d679636c2ce59c Mon Sep 17 00:00:00 2001 From: shatty Date: Sat, 2 Aug 2003 06:03:20 +0000 Subject: [PATCH] reduce dependence on ByteOrder.h by removing B_HOST_IS_BENDIAN and using BYTE_ORDER instead git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4197 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/netinet/ip.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/posix/netinet/ip.h b/headers/posix/netinet/ip.h index 20244797e1..df1ef54391 100644 --- a/headers/posix/netinet/ip.h +++ b/headers/posix/netinet/ip.h @@ -14,10 +14,10 @@ #define IPVERSION 4 struct ip { -#if B_HOST_IS_BENDIAN +#if BYTE_ORDER == BIG_ENDIAN uint8 ip_v:4; uint8 ip_hl:4; -#else +#elif BYTE_ORDER == LITTLE_ENDIAN uint8 ip_hl:4; uint8 ip_v:4; #endif @@ -73,10 +73,10 @@ struct ip_timestamp { uint8 ipt_code;/* IPOPT_TS */ uint8 ipt_len;/* size of structure (variable) */ uint8 ipt_ptr;/* index of current entry */ -#if B_HOST_IS_BENDIAN +#if BYTE_ORDER == BIG_ENDIAN uint8 ipt_oflw:4, ipt_flg:4; -#else +#elif BYTE_ORDER == LITTLE_ENDIAN uint8 ipt_flg:4, ipt_oflw:4; #endif