summaryrefslogtreecommitdiff
path: root/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h')
-rw-r--r--emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h b/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
new file mode 100644
index 00000000000..00266e3c1dc
--- /dev/null
+++ b/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-glide2gl_src_Glide64_Util.h,v 1.1 2015/02/05 17:42:06 wiz Exp $
+
+bswap32 is defined in the included headers on NetBSD.
+
+--- glide2gl/src/Glide64/Util.h.orig 2015-02-04 18:18:28.000000000 +0000
++++ glide2gl/src/Glide64/Util.h
+@@ -56,7 +56,7 @@ float ScaleZ(float z);
+ #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
+ #include <stdlib.h>
+ #define bswap32(x) _byteswap_ulong(x)
+-#else
++#elif !defined(__NetBSD__)
+ static inline uint32_t bswap32(uint32_t val)
+ {
+ return (((val & 0xff000000) >> 24) |