From 8bf89bf918dcfb671ee460d8c75419ce89cea434 Mon Sep 17 00:00:00 2001 From: coco875 Date: Sun, 5 Jan 2025 11:56:10 +0100 Subject: [PATCH] fix a warning --- include/macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/macros.h b/include/macros.h index 4676e7023..31240c89c 100644 --- a/include/macros.h +++ b/include/macros.h @@ -110,11 +110,13 @@ // Envelopes are always stored as big endian, to match sequence files which are // byte blobs and can embed envelopes. Hence this byteswapping macro. +#ifndef BSWAP16 #if IS_BIG_ENDIAN #define BSWAP16(x) (x) #else #define BSWAP16(x) (((x) & 0xff) << 8 | (((x) >> 8) & 0xff)) #endif +#endif /** * (u8*) dl : Cast array down to u8's