Commit 5cd8a118 authored by Alexey Kardashevskiy's avatar Alexey Kardashevskiy Committed by Peter Maydell

arm: fix compile on bigendian host

Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent eedc1a5d
......@@ -73,7 +73,7 @@
* significant half of a uint64_t struct member.
*/
#ifdef HOST_WORDS_BIGENDIAN
#define offsetoflow32(S, M) offsetof(S, M + sizeof(uint32_t))
#define offsetoflow32(S, M) (offsetof(S, M) + sizeof(uint32_t))
#else
#define offsetoflow32(S, M) offsetof(S, M)
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment