summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-02 18:22:56 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-07-02 18:22:56 (GMT)
commita53eb55237b95b154dcf9c431ccb22dfb4c01a99 (patch)
treedfc4eec41d77fcbb1dcbf1b2daeeea10b6d1b9c1
parent040e428e08eedabed3994941a1b098a56827ca1d (diff)
downloadlibparserutils-a53eb55237b95b154dcf9c431ccb22dfb4c01a99.tar.gz
libparserutils-a53eb55237b95b154dcf9c431ccb22dfb4c01a99.tar.bz2
Less brain-dead constant for the benefit of ARM platforms.
svn path=/trunk/libparserutils/; revision=8268
-rw-r--r--src/utils/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/endian.h b/src/utils/endian.h
index 6dc36a0..ff24dbd 100644
--- a/src/utils/endian.h
+++ b/src/utils/endian.h
@@ -10,9 +10,9 @@
static inline bool endian_host_is_le(void)
{
- uint32_t magic = 0x01020304;
+ uint32_t magic = 0x10000002;
- return (((uint8_t *) &magic)[0] == 0x04);
+ return (((uint8_t *) &magic)[0] == 0x02);
}
static inline uint32_t endian_swap(uint32_t val)