SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
x11/irrlicht/patches/patch-source_Irrlicht_os_cpp
Normal file
18
x11/irrlicht/patches/patch-source_Irrlicht_os_cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- source/Irrlicht/os.cpp.orig Fri Nov 9 00:27:39 2012
|
||||
+++ source/Irrlicht/os.cpp Fri Nov 9 00:27:41 2012
|
||||
@@ -22,10 +22,14 @@
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define bswap_16(X) OSReadSwapInt16(&X,0)
|
||||
#define bswap_32(X) OSReadSwapInt32(&X,0)
|
||||
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
+#elif defined(__FreeBSD__)
|
||||
#include <sys/endian.h>
|
||||
#define bswap_16(X) bswap16(X)
|
||||
#define bswap_32(X) bswap32(X)
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ #include <endian.h>
|
||||
+ #define bswap_16(x) letoh16(x)
|
||||
+ #define bswap_32(x) letoh32(x)
|
||||
#elif !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__PPC__) && !defined(_IRR_WINDOWS_API_)
|
||||
#include <byteswap.h>
|
||||
#else
|
Loading…
Add table
Add a link
Reference in a new issue