Commit df29c60 1 parent 9b905ec commit df29c60 Copy full SHA for df29c60
File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ extern "C" {
41
41
#endif
42
42
43
43
#if defined(FREEARC_INTEL_BYTE_ORDER)
44
- #if _BIG_ENDIAN
44
+ #if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
45
45
#error "You're compiling for Motorola byte order, but FREEARC_INTEL_BYTE_ORDER was defined."
46
46
#endif
47
47
#elif defined(FREEARC_MOTOROLA_BYTE_ORDER)
Original file line number Diff line number Diff line change 28
28
#endif
29
29
30
30
/* Test for a big-endian machine */
31
- #if defined(__BIG_ENDIAN__) || defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN) || \
32
- (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
31
+ #if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
33
32
#define FREEARC_MOTOROLA_BYTE_ORDER 1
34
33
#else
35
- #if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
36
- #define FREEARC_INTEL_BYTE_ORDER 1
37
- #endif
34
+ #define FREEARC_INTEL_BYTE_ORDER 1
38
35
#endif
39
36
40
37
#include < stdint.h>
You can’t perform that action at this time.
0 commit comments