From e0a3d9d1152a05c7c8ba6cd713e394c862ce9252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 22 Jun 2015 07:51:00 +0000 Subject: [PATCH] otrx: add extra compilation check before using __BYTE_ORDER MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki SVN-Revision: 46106 --- package/utils/otrx/src/otrx.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.25.1