We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a92f0 commit 7b4e69dCopy full SHA for 7b4e69d
1 file changed
common/kaitai/kaitaistream.cpp
@@ -39,7 +39,7 @@
39
#define bswap_16(x) swap16(x)
40
#define bswap_32(x) swap32(x)
41
#define bswap_64(x) swap64(x)
42
-#elif defined(BSD)
+#elif defined(BSD) && !defined(GNU)
43
// Supposed to work on FreeBSD: https://man.freebsd.org/cgi/man.cgi?query=bswap16&manpath=FreeBSD+14.0-RELEASE
44
// Supposed to work on NetBSD: https://man.netbsd.org/NetBSD-10.0/bswap16.3
45
#include <sys/endian.h>
0 commit comments