From 9de12e89cf34da15ae4b3031d8375eea65564c28 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Dec 2022 16:10:52 -0600 Subject: [PATCH] Almost the same macros, but not quite. --- lib/portability.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/portability.h b/lib/portability.h index 91d20fc0..16f04691 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -145,6 +145,10 @@ void *memmem(const void *haystack, size_t haystack_length, #define IS_BIG_ENDIAN 0 #endif +#define bswap_16(x) bswap16(x) +#define bswap_32(x) bswap32(x) +#define bswap_64(x) bswap64(x) + #else #include -- 2.39.2