Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: tuklib: don't redefine bswap{16,32,64} on NetBSD
On NetBSD: ``` In file included from common/common.h:17, from common/common.c:12: ../../src/common/tuklib_integer.h:69: error: "bswap16" redefined [-Werror] 69 | # define bswap16(n) __builtin_bswap16(n) | In file included from /usr/include/amd64/bswap.h:13, from /usr/include/sys/endian.h:107, from /usr/include/amd64/endian.h:3, from /usr/include/sys/types.h:98, from /usr/include/stdlib.h:41, from ../../src/common/sysdefs.h:134, from common/common.h:15, from common/common.c:12: /usr/include/sys/bswap.h:71: note: this is the location of the previous definition 71 | #define bswap16(x) \ | ``` If we're in the case where we know we have __builtin_bswap*, just undef _bswap* first.