projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5c445
)
otrx: add extra compilation check before using __BYTE_ORDER
author
Rafał Miłecki
<zajec5@gmail.com>
Mon, 22 Jun 2015 07:51:00 +0000
(07:51 +0000)
committer
Rafał Miłecki
<zajec5@gmail.com>
Mon, 22 Jun 2015 07:51:00 +0000
(07:51 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46106
package/utils/otrx/src/otrx.c
patch
|
blob
|
history
diff --git
a/package/utils/otrx/src/otrx.c
b/package/utils/otrx/src/otrx.c
index 131d8d6052eb8b268092889090e79a20be90bfb7..101a31004dcd4e69606ccba61b8caa2c8fbad168 100644
(file)
--- a/
package/utils/otrx/src/otrx.c
+++ b/
package/utils/otrx/src/otrx.c
@@
-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)