Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Index: RCF-2.2.0.0/src/RCF/ByteOrdering.cpp |
| 2 | =================================================================== |
| 3 | --- RCF-2.2.0.0.orig/src/RCF/ByteOrdering.cpp |
| 4 | +++ RCF-2.2.0.0/src/RCF/ByteOrdering.cpp |
| 5 | @@ -64,6 +64,14 @@ namespace RCF { |
| 6 | |
| 7 | const ByteOrder MachineByteOrder = LittleEndian; |
| 8 | |
| 9 | +#elif defined(__mipsel__) || defined(__mips64el__) |
| 10 | + |
| 11 | + const ByteOrder MachineByteOrder = LittleEndian; |
| 12 | + |
| 13 | +#elif defined( __mips__ ) || defined(__mips64__) |
| 14 | + |
| 15 | + const ByteOrder MachineByteOrder = BigEndian; |
| 16 | + |
| 17 | #elif defined(__bfin__) |
| 18 | |
| 19 | const ByteOrder MachineByteOrder = LittleEndian; |