mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
1819836d4c
ChangeLog at: https://github.com/mixxxdj/mixxx/blob/2.3.0/CHANGELOG.md PR: 249348 Reported by: fbsd-bugzilla at schlachter.ca
15 lines
461 B
C++
15 lines
461 B
C++
--- lib/kaitai/kaitaistream.cpp.orig 2021-06-28 20:04:59 UTC
|
|
+++ lib/kaitai/kaitaistream.cpp
|
|
@@ -17,6 +17,11 @@
|
|
#define bswap_16(x) _byteswap_ushort(x)
|
|
#define bswap_32(x) _byteswap_ulong(x)
|
|
#define bswap_64(x) _byteswap_uint64(x)
|
|
+#elif defined(__FreeBSD__)
|
|
+#include <sys/endian.h>
|
|
+#define bswap_16(x) bswap16(x)
|
|
+#define bswap_32(x) bswap32(x)
|
|
+#define bswap_64(x) bswap64(x)
|
|
#else // !__APPLE__ or !_MSC_VER
|
|
#include <endian.h>
|
|
#include <byteswap.h>
|