Skip to content

Commit

Permalink
Try NetBSD with __BYTE_ORDER / __BIG_ENDIAN / __LITTLE_ENDIAN defines
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Jun 3, 2024
1 parent c3bae0f commit 26a141a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kaitai/kaitaistream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
#define bswap_64(x) bswap64(x)
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#else // !__APPLE__ or !_MSC_VER or !__QNX__ or !BSD
#include <endian.h>
#include <byteswap.h>
Expand Down

0 comments on commit 26a141a

Please sign in to comment.