diff --git a/arm-wt-22k/src/hostmm_ng.c b/arm-wt-22k/src/hostmm_ng.c index 3bb533c3..34510be9 100644 --- a/arm-wt-22k/src/hostmm_ng.c +++ b/arm-wt-22k/src/hostmm_ng.c @@ -20,16 +20,16 @@ /* Only for debugging LED, vibrate, and backlight functions */ #include "eas_report.h" -#if __has_include() +#if defined(__GNUC__) || defined(__clang__) +#define bswap16 __builtin_bswap16 +#define bswap32 __builtin_bswap32 +#elif __has_include() #include -#define bswap16 __bswap_16 -#define bswap32 __bswap_32 +#define bswap16 bswap_16 +#define bswap32 bswap_32 #elif defined(_MSC_VER) #define bswap16 _byteswap_ushort #define bswap32 _byteswap_ulong -#elif defined(__GNUC__) || defined(__clang__) -#define bswap16 __builtin_bswap16 -#define bswap32 __builtin_bswap32 #endif const EAS_BOOL O32_BIG_ENDIAN =