diff options
| author | coco875 <pereira.jannin@gmail.com> | 2025-01-05 11:56:10 +0100 |
|---|---|---|
| committer | coco875 <pereira.jannin@gmail.com> | 2025-01-05 11:56:10 +0100 |
| commit | 8bf89bf918dcfb671ee460d8c75419ce89cea434 (patch) | |
| tree | f11df7a147cf263ef3aa2ed5c2eda9af98fdc7f8 /include/macros.h | |
| parent | 8a9728e7df910b098c3519518f970f3a1e241673 (diff) | |
fix a warning
Diffstat (limited to 'include/macros.h')
| -rw-r--r-- | include/macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
