File fmsx-sdl-3.3-z-file.patch of Package fmsx-sdl
--- fmsx-sdl-3.3.old/MSX.c 2015-05-31 19:29:30.000000000 +0200
+++ fmsx-sdl-3.3/MSX.c 2015-05-31 19:35:08.000000000 +0200
@@ -2487,6 +2487,12 @@
#define rewind gzrewind
#define fgetc gzgetc
#define ftell gztell
+
+#define theFILE gzFile
+
+#else
+
+#define theFILE *FILE
#endif
#include <sys/param.h>
@@ -2498,7 +2504,7 @@
/*************************************************************/
byte LoadFNT(const char *FileName)
{
- FILE *F;
+ theFILE F;
char path[PATH_MAX];
/* Drop out if no new font requested */
@@ -2526,7 +2532,7 @@
/*************************************************************/
byte *LoadROM(const char *Name,int Size,byte *Buf)
{
- FILE *F;
+ theFILE F;
byte *P;
int J;
char path[PATH_MAX];
@@ -2586,7 +2592,7 @@
{
int C1,C2,Len,Pages,ROM64;
byte *P,PS,SS;
- FILE *F;
+ theFILE F;
char path[PATH_MAX];
/* Slot number must be valid */
@@ -2914,7 +2920,7 @@
{
static byte Header[16] = "STE\032\003\0\0\0\0\0\0\0\0\0\0\0";
unsigned int State[256],J,I,K;
- FILE *F;
+ theFILE F;
/* Open state file */
if(!(F=fopen(FileName,"wb"))) return(0);
@@ -3004,7 +3010,7 @@
{
unsigned int State[256],J,I,K;
byte Header[16];
- FILE *F;
+ theFILE F;
/* Open state file */
if(!(F=fopen(FileName,"rb"))) return(0);