endian: fix compilation with musl libc.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 10 May 2018 02:25:59 +0000 (11:55 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 10 May 2018 02:25:59 +0000 (11:55 +0930)
commit696c9b68f6334835f13037a83dd5a11c1c8129c7
tree540c986fe598e456a8b64eab9a966bdda31f9c01
parent5a15d1aaa373ca2ffe9cd99f75d42e4a8ed4e4e9
endian: fix compilation with musl libc.

It defines __BYTE_ORDER to __BYTE_ORDER__; gcc complains when we define
it to something else.  Let it be already defined, but check that the
value is what we expect.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/endian/endian.h