X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fendianness.h;fp=include%2Fwimlib%2Fendianness.h;h=38e2bc2c042ab64c9b642b6aab712196a763cc79;hb=b6223f9fdee97d0a9ee53a3eae984952a8e5ed02;hp=ed0b7ec443eb26cf679810a26820278306d6db25;hpb=06be73db2299bf580cfc4197099bce8547472825;p=wimlib diff --git a/include/wimlib/endianness.h b/include/wimlib/endianness.h index ed0b7ec4..38e2bc2c 100644 --- a/include/wimlib/endianness.h +++ b/include/wimlib/endianness.h @@ -24,6 +24,14 @@ #include "wimlib/compiler.h" #include "wimlib/types.h" +#ifdef HAVE_SYS_ENDIAN_H + /* Needed on NetBSD to stop system bswap macros from messing things up */ +# include +# undef bswap16 +# undef bswap32 +# undef bswap64 +#endif + /* Watch out for conflict with ntfs-3g/endians.h ... */ #ifndef _NTFS_ENDIANS_H