ccan.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Add Glibc like endianess check
       [not found] <1505193793-776-1-git-send-email-akshay.adiga@linux.vnet.ibm.com>
@ 2017-09-12 11:02 ` Rusty Russell
  2017-09-13  6:33   ` Akshay Adiga
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2017-09-12 11:02 UTC (permalink / raw)
  To: Akshay Adiga, ccan; +Cc: ego, svaidy

Akshay Adiga <akshay.adiga@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.
_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add Glibc like endianess check
  2017-09-12 11:02 ` [PATCH] Add Glibc like endianess check Rusty Russell
@ 2017-09-13  6:33   ` Akshay Adiga
  0 siblings, 0 replies; 2+ messages in thread
From: Akshay Adiga @ 2017-09-13  6:33 UTC (permalink / raw)
  To: Rusty Russell; +Cc: ccan, ego, svaidy

Thanks!!!

On 09/12/2017 04:32 PM, Rusty Russell wrote:
> Akshay Adiga <akshay.adiga@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.
>

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-13  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1505193793-776-1-git-send-email-akshay.adiga@linux.vnet.ibm.com>
2017-09-12 11:02 ` [PATCH] Add Glibc like endianess check Rusty Russell
2017-09-13  6:33   ` Akshay Adiga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).