Skip to content

Commit 26a141a

Browse files
committed
Try NetBSD with __BYTE_ORDER / __BIG_ENDIAN / __LITTLE_ENDIAN defines
1 parent c3bae0f commit 26a141a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kaitai/kaitaistream.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
#define bswap_16(x) bswap16(x)
3939
#define bswap_32(x) bswap32(x)
4040
#define bswap_64(x) bswap64(x)
41+
#define __BYTE_ORDER BYTE_ORDER
42+
#define __BIG_ENDIAN BIG_ENDIAN
43+
#define __LITTLE_ENDIAN LITTLE_ENDIAN
4144
#else // !__APPLE__ or !_MSC_VER or !__QNX__ or !BSD
4245
#include <endian.h>
4346
#include <byteswap.h>

0 commit comments

Comments
 (0)