From 31ab2334b95b3f5b8e13f72602159768033b183a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 9 Oct 2009 15:15:13 -0700 Subject: [PATCH] byteorder: more typos --- src/include/byteorder.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/byteorder.h b/src/include/byteorder.h index ba2eb6a83183f..304ed5ee755a4 100644 --- a/src/include/byteorder.h +++ b/src/include/byteorder.h @@ -33,11 +33,14 @@ static __inline__ __u64 swab64(__u64 val) } // mswab == maybe swab (if not LE) -#if __BYTEORDER == __BIG_ENDIAN +#if __BYTE_ORDER == __BIG_ENDIAN # define mswab64(a) swab64(a) # define mswab32(a) swab32(a) # define mswab16(a) swab16(a) #else +# if __BYTE_ORDER != __LITTLE_ENDIAN +# warning __BYTE_ORDER is not defined, assuming little endian +# endif # define mswab64(a) (a) # define mswab32(a) (a) # define mswab16(a) (a) -- 2.39.5