diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-01-09 02:47:01 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-01-09 02:47:01 +0100 |
commit | 155d605df0cc8b2dd9eb575048f6f57b692650a1 (patch) | |
tree | 07ff0034fe40abc032616f908ffec3cc6502bd06 /adk | |
parent | a3e0243efc3b20ae5a6cdbc750566300a4543cc8 (diff) |
remove duplicate macros on Darwin/*BSD
Diffstat (limited to 'adk')
-rw-r--r-- | adk/include/endian.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/adk/include/endian.h b/adk/include/endian.h index bba70abd8..bd94c4976 100644 --- a/adk/include/endian.h +++ b/adk/include/endian.h @@ -7,24 +7,12 @@ #elif defined(__APPLE__) #include <machine/endian.h> #include <machine/byte_order.h> -#define bswap_16(x) NXSwapShort(x) -#define bswap_32(x) NXSwapInt(x) -#define bswap_64(x) NXSwapLongLong(x) #elif defined(__FreeBSD__) #include <sys/endian.h> -#define bswap_16(x) bswap16(x) -#define bswap_32(x) bswap32(x) -#define bswap_64(x) bswap64(x) #elif defined(__OpenBSD__) #include <sys/types.h> -#define bswap_16(x) __swap16(x) -#define bswap_32(x) __swap32(x) -#define bswap_64(x) __swap64(x) #else #include <machine/endian.h> -#define bswap_16(x) swap16(x) -#define bswap_32(x) swap32(x) -#define bswap_64(x) swap64(x) #endif #ifndef __BYTE_ORDER |