summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-06-17 19:42:03 +0000
committerjoerg <joerg@pkgsrc.org>2017-06-17 19:42:03 +0000
commit3fb5e0bc6c78046a3c404fb927cdcffc68100430 (patch)
tree51b8b2efc4858d096503648ed8effc1a14a503c9 /emulators
parent21d3e9368aba71acebd1bda7ed074a9eb087b5fe (diff)
downloadpkgsrc-3fb5e0bc6c78046a3c404fb927cdcffc68100430.tar.gz
Fix some C99 compat issues.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/libretro-mupen64plus/distinfo3
-rw-r--r--emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c95
2 files changed, 97 insertions, 1 deletions
diff --git a/emulators/libretro-mupen64plus/distinfo b/emulators/libretro-mupen64plus/distinfo
index 9a4232676be..ae1a399c54d 100644
--- a/emulators/libretro-mupen64plus/distinfo
+++ b/emulators/libretro-mupen64plus/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 20:30:59 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/06/17 19:42:03 joerg Exp $
SHA1 (mupen64plus-libretro-20150204.zip) = 85599e878094348163d68fdd704c5bc7edf78e44
RMD160 (mupen64plus-libretro-20150204.zip) = 6c08b86834a8f6d548c85eaa34ca38e779b6a0d2
@@ -6,3 +6,4 @@ SHA512 (mupen64plus-libretro-20150204.zip) = 9c016c1dcff40a9435bd5bb4ec07431c916
Size (mupen64plus-libretro-20150204.zip) = 3286777 bytes
SHA1 (patch-glide2gl_src_Glide64_Util.h) = d3bceef0ba895af8309bfe9435d701d76ca31a27
SHA1 (patch-libretro_libco_armeabi.c) = dbce5604b0a160dfbdae82506957e2c852d4ca9d
+SHA1 (patch-mupen64plus-video-angrylion_n64video.c) = 7781b2aaa5efb2d0c670438130ad9ef59aa711fc
diff --git a/emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c b/emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c
new file mode 100644
index 00000000000..22ad3b6a3ca
--- /dev/null
+++ b/emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c
@@ -0,0 +1,95 @@
+$NetBSD: patch-mupen64plus-video-angrylion_n64video.c,v 1.1 2017/06/17 19:42:03 joerg Exp $
+
+C99's inline has different semantic.
+
+--- mupen64plus-video-angrylion/n64video.c.orig 2017-06-16 12:04:46.824147448 +0000
++++ mupen64plus-video-angrylion/n64video.c
+@@ -218,7 +218,7 @@ static void compute_cvg_flip(INT32 scanl
+ STRICTINLINE UINT32 z_decompress(UINT32 rawz);
+ STRICTINLINE UINT32 dz_decompress(UINT32 compresseddz);
+ STRICTINLINE UINT32 dz_compress(UINT32 value);
+-INLINE void z_build_com_table(void);
++void z_build_com_table(void);
+ static void precalc_cvmask_derivatives(void);
+ STRICTINLINE UINT16 decompress_cvmask_frombyte(UINT8 byte);
+ STRICTINLINE void lookup_cvmask_derivatives(UINT32 mask, UINT8* offx, UINT8* offy, UINT32* curpixel_cvg, UINT32* curpixel_cvbit);
+@@ -698,7 +698,7 @@ INLINE void SET_SUBA_RGB_INPUT(INT32 **i
+ }
+ }
+
+-INLINE void SET_SUBB_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_SUBB_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+ switch (code & 0xf)
+ {
+@@ -717,7 +717,7 @@ INLINE void SET_SUBB_RGB_INPUT(INT32 **i
+ }
+ }
+
+-INLINE void SET_MUL_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_MUL_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+ switch (code & 0x1f)
+ {
+@@ -745,7 +745,7 @@ INLINE void SET_MUL_RGB_INPUT(INT32 **in
+ }
+ }
+
+-INLINE void SET_ADD_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_ADD_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+ switch (code & 0x7)
+ {
+@@ -760,7 +760,7 @@ INLINE void SET_ADD_RGB_INPUT(INT32 **in
+ }
+ }
+
+-INLINE void SET_SUB_ALPHA_INPUT(INT32 **input, int code)
++void SET_SUB_ALPHA_INPUT(INT32 **input, int code)
+ {
+ switch (code & 0x7)
+ {
+@@ -775,7 +775,7 @@ INLINE void SET_SUB_ALPHA_INPUT(INT32 **
+ }
+ }
+
+-INLINE void SET_MUL_ALPHA_INPUT(INT32 **input, int code)
++void SET_MUL_ALPHA_INPUT(INT32 **input, int code)
+ {
+ switch (code & 0x7)
+ {
+@@ -1129,7 +1129,7 @@ static void precalculate_everything(void
+ return;
+ }
+
+-INLINE void SET_BLENDER_INPUT(int cycle, int which, INT32 **input_r, INT32 **input_g, INT32 **input_b, INT32 **input_a, int a, int b)
++void SET_BLENDER_INPUT(int cycle, int which, INT32 **input_r, INT32 **input_g, INT32 **input_b, INT32 **input_a, int a, int b)
+ {
+
+ switch (a & 0x3)
+@@ -5837,7 +5837,7 @@ STRICTINLINE UINT32 z_decompress(UINT32
+ return (z_complete_dec_table[zb >> 2]);
+ }
+
+-INLINE void z_build_com_table(void)
++void z_build_com_table(void)
+ {
+ register int z;
+ UINT16 altmem = 0;
+@@ -6220,14 +6220,14 @@ STRICTINLINE INT32 CLIP(INT32 value,INT3
+ return value;
+ }
+
+-INLINE void calculate_clamp_diffs(UINT32 i)
++void calculate_clamp_diffs(UINT32 i)
+ {
+ tile[i].f.clampdiffs = ((tile[i].sh >> 2) - (tile[i].sl >> 2)) & 0x3ff;
+ tile[i].f.clampdifft = ((tile[i].th >> 2) - (tile[i].tl >> 2)) & 0x3ff;
+ }
+
+
+-INLINE void calculate_tile_derivs(UINT32 i)
++void calculate_tile_derivs(UINT32 i)
+ {
+ tile[i].f.clampens = tile[i].cs || !tile[i].mask_s;
+ tile[i].f.clampent = tile[i].ct || !tile[i].mask_t;