[ccan] [PATCH] Add Glibc like endianess check

Akshay Adiga akshay.adiga at linux.vnet.ibm.com
Wed Sep 13 16:33:51 AEST 2017


Thanks!!!

On 09/12/2017 04:32 PM, Rusty Russell wrote:
> Akshay Adiga <akshay.adiga at linux.vnet.ibm.com> writes:
> > An application built using glibc would expect __BYTE_ORDER to tell if
> > it should be compiled for BIG_ENDIAN or LITTLE_ENDIAN, whereas ccan uses
> > HAVE_LITTLE_ENDIAN and HAVE_BIG_ENDIAN for the same purpose.
> >
> > Hence setting __BYTE_ORDER based on what CCAN provides will no longer
> > break the applications which check endianness the glibc way.
>
> Thanks, applied!
>
> Cheers,
> Rusty.
>



More information about the ccan mailing list