games/Doom64EX: fix build
/wrkdirs/usr/ports/games/Doom64EX/work/Doom64EX-03a5e6a5a3a14d66886f62b72431b37ef7336706/include/imp/util/Endian:64:12: error: use of undeclared identifier 'bswap16'
64 | { return bswap16(x); }
| ^
This commit is contained in:
parent
3a77cd2cfa
commit
7d5953d809
@ -1,15 +1,15 @@
|
|||||||
--- include/imp/util/Endian.orig 2018-08-24 09:23:34 UTC
|
--- include/imp/util/Endian.orig 2018-08-24 09:23:34 UTC
|
||||||
+++ include/imp/util/Endian
|
+++ include/imp/util/Endian
|
||||||
@@ -10,7 +10,7 @@
|
@@ -12,6 +12,8 @@
|
||||||
# define BIG_ENDIAN 0x1234
|
|
||||||
# define LITTLE_ENDIAN 0x4321
|
|
||||||
# define BYTE_ORDER LITTLE_ENDIAN
|
# define BYTE_ORDER LITTLE_ENDIAN
|
||||||
-#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
+#elif defined(__APPLE__) || defined(__FreeBSD__)
|
|
||||||
# include <machine/endian.h>
|
# include <machine/endian.h>
|
||||||
|
+#elif defined(__FreeBSD__)
|
||||||
|
+# include <sys/endian.h>
|
||||||
#else
|
#else
|
||||||
# include <endian.h>
|
# include <endian.h>
|
||||||
@@ -57,6 +57,26 @@ namespace imp {
|
#endif
|
||||||
|
@@ -57,6 +59,26 @@ namespace imp {
|
||||||
|
|
||||||
inline uint64 swap_bytes(uint64 x) noexcept
|
inline uint64 swap_bytes(uint64 x) noexcept
|
||||||
{ return OSSwapInt64(x); }
|
{ return OSSwapInt64(x); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user