4b9b723f3d
* Non-OpenGL drawing is not supported anymore * Disable wiimote support * I have tested on Fedora 22 with xf86-video-nv Changelog: SuperTuxkart 0.8.1 ~~~~~~~~~~~~~~~~~~ * New track STK Enterprise * Updated track The old mines * Updated Lighthouse track * Updated Zen Garden track * New Soccer mode * New Egg Hunt mode * New karts Xue and Sara * Updated Beastie kart * Added Tutorial * Added new Supertux difficulty * New bubblegum shield weapon * New Speeodmeter and nitro meter * Add ability to filter addons * Updated nitro models * Add ability to save and resume Grand Prix * Improve skid marks and nitro effects * Wiimote support
22 lines
827 B
C++
22 lines
827 B
C++
$NetBSD: patch-lib_irrlicht_source_Irrlicht_os.cpp,v 1.2 2014/01/01 02:46:49 ryoon Exp $
|
|
|
|
* Fix build on NetBSD and OpenBSD
|
|
|
|
--- lib/irrlicht/source/Irrlicht/os.cpp.orig 2013-12-31 07:04:37.000000000 +0000
|
|
+++ lib/irrlicht/source/Irrlicht/os.cpp
|
|
@@ -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__) || defined(__NetBSD__)
|
|
#include <sys/endian.h>
|
|
#define bswap_16(X) bswap16(X)
|
|
#define bswap_32(X) bswap32(X)
|
|
+#elif defined(__OpenBSD__)
|
|
+ #include <sys/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
|