Author: rmilecki Date: 2015-06-22 09:51:00 +0200 (Mon, 22 Jun 2015) New Revision: 46106
Modified: trunk/package/utils/otrx/src/otrx.c Log: otrx: add extra compilation check before using __BYTE_ORDER Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/package/utils/otrx/src/otrx.c =================================================================== --- trunk/package/utils/otrx/src/otrx.c 2015-06-22 06:45:56 UTC (rev 46105) +++ trunk/package/utils/otrx/src/otrx.c 2015-06-22 07:51:00 UTC (rev 46106) @@ -18,6 +18,10 @@ #include <string.h> #include <unistd.h> +#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) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
