]> git.ipfire.org Git - thirdparty/util-linux.git/commit
bitops: avoid macro redefinition on macOS
authorKarel Zak <kzak@redhat.com>
Thu, 25 Jun 2026 13:11:19 +0000 (15:11 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 25 Jun 2026 13:12:44 +0000 (15:12 +0200)
commitb15742bf5aff23f4d21565fbb6ce31b13c54263d
tree99fb514c27d7e70cf7c15e9aaf3ec19c906c485b
parent4b3fac563510dede34550ac7280aa00b3e29cd94
bitops: avoid macro redefinition on macOS

Newer macOS SDKs provide htobe16/htole16/be16toh/etc. via
<sys/endian.h>. Skip our OSSwap-based definitions when that
header is available to avoid -Wmacro-redefined errors.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/bitops.h