projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
725444a
)
fix endianess bug inside libbklid-tiny
author
John Crispin
<blogic@openwrt.org>
Fri, 28 Jun 2013 13:38:18 +0000
(15:38 +0200)
committer
John Crispin
<blogic@openwrt.org>
Fri, 28 Jun 2013 13:38:18 +0000
(15:38 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
libblkid-tiny/bitops.h
patch
|
blob
|
history
diff --git
a/libblkid-tiny/bitops.h
b/libblkid-tiny/bitops.h
index 81375d0604e8f8d8ce9492a9c9fafd8617480ff9..5bf205794783e41236bcd71e174d8c700f77c842 100644
(file)
--- a/
libblkid-tiny/bitops.h
+++ b/
libblkid-tiny/bitops.h
@@
-46,7
+46,7
@@
(uint64_t)(((uint64_t)(x) & (uint64_t)0xff00000000000000ULL) >> 56) ))
-#if
def WORDS_BIG
ENDIAN
+#if
__BYTE_ORDER == __BIG_
ENDIAN
#define cpu_to_le16(x) swab16(x)
#define cpu_to_le32(x) swab32(x)