include: Fall back to little endian when it's not specified on ARM

André Hentschel nerv at dawncrow.de
Tue May 10 13:49:58 CDT 2011


some bad crosscompilers don't define __ARMEL__ and also don't define __arm__, but in the last case our configure jumps in and defines it.
---
 include/basetsd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/basetsd.h b/include/basetsd.h
index 1259ad9..852f6f4 100644
--- a/include/basetsd.h
+++ b/include/basetsd.h
@@ -295,7 +295,7 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
 # define WORDS_BIGENDIAN
 # define BITFIELDS_BIGENDIAN
 # undef  ALLOW_UNALIGNED_ACCESS
-#elif defined(__ARMEL__)
+#elif defined(__ARMEL__) || defined(__arm__)
 # undef  WORDS_BIGENDIAN
 # undef  BITFIELDS_BIGENDIAN
 # undef  ALLOW_UNALIGNED_ACCESS
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list