From: rmilecki Date: Mon, 22 Jun 2015 07:51:00 +0000 (+0000) Subject: otrx: add extra compilation check before using __BYTE_ORDER X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=ac9099e4f02d931c0f0496a965c2fda21e493389;p=openwrt.git otrx: add extra compilation check before using __BYTE_ORDER Signed-off-by: Rafał Miłecki git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46106 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c index 131d8d6052..101a31004d 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)