From: Rafał Miłecki Date: Mon, 22 Jun 2015 07:51:00 +0000 (+0000) Subject: otrx: add extra compilation check before using __BYTE_ORDER X-Git-Tag: reboot~2694 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e0a3d9d1152a05c7c8ba6cd713e394c862ce9252;p=openwrt%2Fstaging%2Fblogic.git otrx: add extra compilation check before using __BYTE_ORDER Signed-off-by: Rafał Miłecki SVN-Revision: 46106 --- diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c index 131d8d6052eb..101a31004dcd 100644 --- a/package/utils/otrx/src/otrx.c +++ b/package/utils/otrx/src/otrx.c @@ -18,6 +18,10 @@ #include #include +#if !defined(__BYTE_ORDER) +#error "Unknown byte order" +#endif + #if __BYTE_ORDER == __BIG_ENDIAN #define cpu_to_le32(x) bswap_32(x) #define le32_to_cpu(x) bswap_32(x)