]> git.ipfire.org Git - people/ms/u-boot.git/commit
compiler.h: use u-boot endian macros on OpenBSD
authorJonathan Gray <jsg@jsg.id.au>
Sat, 26 Nov 2016 04:18:00 +0000 (15:18 +1100)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:38 +0000 (21:32 -0500)
commitfd184b9c8003811d797dfc64af6375ecb43cc79d
tree18ac691ecb3f3d54be9dc2b524c7737b0af5e8a6
parent7e0b87c91ab252515e419b7718606316b0319de8
compiler.h: use u-boot endian macros on OpenBSD

When building u-boot on sparc64 and powerpc hosts it became clear that
u-boot expects endian conversion defines to be macros:

lib/crc32.c:87: error: braced-group within expression allowed only inside a function

For OpenBSD switch from using system definitions equivalent to the u-boot ones
and define glibc __BYTE_ORDER __BIG_ENDIAN __LITTLE_ENDIAN names, as at least
some parts of the non-cross build assumes those names are present (ie crc32.c).

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
include/compiler.h