Skip to content

Commit

Permalink
Merge pull request #33 from lephilousophe/fix-bswap
Browse files Browse the repository at this point in the history
Fix bswap use on Android
  • Loading branch information
pedrolcl authored Dec 31, 2024
2 parents efba03f + 612f376 commit 6685836
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arm-wt-22k/src/hostmm_ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
/* Only for debugging LED, vibrate, and backlight functions */
#include "eas_report.h"

#if __has_include(<byteswap.h>)
#if defined(__GNUC__) || defined(__clang__)
#define bswap16 __builtin_bswap16
#define bswap32 __builtin_bswap32
#elif __has_include(<byteswap.h>)
#include <byteswap.h>
#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 =
Expand Down

0 comments on commit 6685836

Please sign in to comment.