|
Lines 21-29
Link Here
|
| 21 |
#include "rom.h" |
21 |
#include "rom.h" |
| 22 |
#include "prefs.h" |
22 |
#include "prefs.h" |
| 23 |
|
23 |
|
| 24 |
#ifdef HAVE_ZLIB_H |
24 |
#include <zlib.h> |
| 25 |
# include <zlib.h> |
|
|
| 26 |
#endif |
| 27 |
|
25 |
|
| 28 |
namespace fr = frend; |
26 |
namespace fr = frend; |
| 29 |
|
27 |
|
|
Lines 209-217
Link Here
|
| 209 |
}; |
207 |
}; |
| 210 |
#ifdef ZLIB_VERSION |
208 |
#ifdef ZLIB_VERSION |
| 211 |
# define romopen(f) (gzFile*)gzopen(f.c_str(), "rb") |
209 |
# define romopen(f) (gzFile*)gzopen(f.c_str(), "rb") |
| 212 |
# define romseek gzseek |
210 |
# define romseek(a, b, c) gzseek(*a, b, c) |
| 213 |
# define romread gzread |
211 |
# define romread(a, b, c) gzread(*a, b, c) |
| 214 |
# define romclose gzclose |
212 |
# define romclose(a) gzclose(*a) |
| 215 |
gzFile *fptr; |
213 |
gzFile *fptr; |
| 216 |
#else |
214 |
#else |
| 217 |
# define romopen(f) fopen(f.c_str(), "rb") |
215 |
# define romopen(f) fopen(f.c_str(), "rb") |