[2/3] include: Add MIPS endianess

André Hentschel nerv at dawncrow.de
Fri Oct 29 09:34:38 CDT 2010


---
 include/basetsd.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/basetsd.h b/include/basetsd.h
index aa6e86d..1259ad9 100644
--- a/include/basetsd.h
+++ b/include/basetsd.h
@@ -299,6 +299,14 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
 # undef  WORDS_BIGENDIAN
 # undef  BITFIELDS_BIGENDIAN
 # undef  ALLOW_UNALIGNED_ACCESS
+#elif defined(__MIPSEB__)
+# define WORDS_BIGENDIAN
+# define BITFIELDS_BIGENDIAN
+# undef  ALLOW_UNALIGNED_ACCESS
+#elif defined(__MIPSEL__)
+# undef  WORDS_BIGENDIAN
+# undef  BITFIELDS_BIGENDIAN
+# undef  ALLOW_UNALIGNED_ACCESS
 #elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
 # error Unknown CPU architecture!
 #endif
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list