summaryrefslogtreecommitdiff
path: root/adk
diff options
context:
space:
mode:
Diffstat (limited to 'adk')
-rw-r--r--adk/include/endian.h12
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