pilegod / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

OSX Compilation Patch #466

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Disclaimer : I don't understand this bit of code so I'm not sure if my fix is 
OK (namely nothing seems to ever define 'USE_FILE32API')

diff -r 5ba207d8a198 src/main/zip/ioapi.h
--- src/main/zip/ioapi.h    Thu Oct 06 11:32:09 2011 +0200
+++ src/main/zip/ioapi.h    Wed Oct 12 15:30:21 2011 -0400
@@ -44,7 +44,7 @@
 #include <stdlib.h>
 #include "zlib.h"

-#if defined(USE_FILE32API)
+#if defined(USE_FILE32API) || defined(__APPLE__)
 #define fopen64 fopen
 #define ftello64 ftell
 #define fseeko64 fseek

Original issue reported on code.google.com by auria...@gmail.com on 12 Oct 2011 at 7:31

GoogleCodeExporter commented 8 years ago
Could you add this using the makefile (-DUSE_FILE32API to CFLAGS in the macos 
part) because the code is just a plain import from zlib

Original comment by s...@narfation.org on 12 Oct 2011 at 9:44

GoogleCodeExporter commented 8 years ago
Can you please test 
https://bitbucket.org/ecsv/mupen64plus-core/changeset/4314de5ad98b (repo will 
disappear after richard merged it)?

Original comment by s...@narfation.org on 12 Oct 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Works fine, thanks

Original comment by auria...@gmail.com on 12 Oct 2011 at 10:19

GoogleCodeExporter commented 8 years ago
Patch is now merged

Original comment by s...@narfation.org on 12 Nov 2011 at 7:09