Add mips support to sid/include/sidtypes.h

Thiemo Seufer <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
[ I'm not subscribed to [email protected], please Cc me for replies ]

Hello all,

this patch adds support for MIPS, both endiannesses, to
sid/include/sidtypes.h.


Thiemo


/sid/include/ChangeLog
2005-01-26  Thiemo Seufer  <[email protected]>

	* sidtypes.h (HOST_BIG_ENDIAN): Add support for both MIPS
	endiannesses.


Index: sid/include/sidtypes.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidtypes.h,v
retrieving revision 1.3
diff -u -p -r1.3 sidtypes.h
--- sid/include/sidtypes.h	16 Dec 2004 21:16:35 -0000	1.3
+++ sid/include/sidtypes.h	26 Jan 2005 23:43:48 -0000
@@ -25,9 +25,9 @@
 #  define HOST_BIG_ENDIAN true
 # endif
 #else
-# if defined(__i386__) || defined(__x86_64__) || defined(__alpha__) 
+# if defined(__i386__) || defined(__x86_64__) || defined(__alpha__) || (defined(__mips__) && defined(_MIPSEL))
 #  define HOST_BIG_ENDIAN false
-# elif defined(__sparc__) || defined(__powerpc__)
+# elif defined(__sparc__) || defined(__powerpc__) || (defined(__mips__) && defined(_MIPSEB))
 #  define HOST_BIG_ENDIAN true
 # else
 #  error "Unknown host platform"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.