diff options
Diffstat (limited to 'sim/ppc/ppc-endian.c')
-rw-r--r-- | sim/ppc/ppc-endian.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/ppc/ppc-endian.c b/sim/ppc/ppc-endian.c index 1e51bdf..ec90bb7 100644 --- a/sim/ppc/ppc-endian.c +++ b/sim/ppc/ppc-endian.c @@ -33,7 +33,7 @@ #include "ppc-endian.h" #include "sim_callbacks.h" -#if (WITH_HOST_BYTE_ORDER == LITTLE_ENDIAN) && WITH_NTOH +#if !defined(SWAP_2) && (WITH_HOST_BYTE_ORDER == LITTLE_ENDIAN) && WITH_NTOH #define SWAP_2(SET,RAW) SET htons (RAW) #endif @@ -67,7 +67,7 @@ endian_##NAME##_##BYTE_SIZE(unsigned_##BYTE_SIZE raw_in) \ return raw_in; \ } \ else { \ - SWAP_##BYTE_SIZE(return, raw_in); \ + SWAP_##BYTE_SIZE(return,raw_in); \ } \ } #endif |