Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/biology/abyss/files/patch-Common_city.cc
16124 views
1
--- Common/city.cc.orig 2018-09-21 23:44:14 UTC
2
+++ Common/city.cc
3
@@ -65,6 +65,10 @@ static uint32 UNALIGNED_LOAD32(const char *p) {
4
#define bswap_32(x) OSSwapInt32(x)
5
#define bswap_64(x) OSSwapInt64(x)
6
7
+#elif defined(__FreeBSD__)
8
+#include <sys/endian.h>
9
+#define bswap_32(x) bswap32(x)
10
+#define bswap_64(x) bswap64(x)
11
#else
12
#include <byteswap.h>
13
#endif
14
15