diff -ur a/gme/blargg_config.h b/gme/blargg_config.h --- a/gme/blargg_config.h 2009-07-12 21:53:08.000000000 -0700 +++ b/gme/blargg_config.h 2013-01-25 23:17:34.403695100 -0800 @@ -4,7 +4,7 @@ #define BLARGG_CONFIG_H // Uncomment to use zlib for transparent decompression of gzipped files -//#define HAVE_ZLIB_H +#define HAVE_ZLIB_H // Uncomment to enable platform-specific optimizations //#define BLARGG_NONPORTABLE 1 diff -ur a/gme/Data_Reader.cpp b/gme/Data_Reader.cpp --- a/gme/Data_Reader.cpp 2008-12-20 16:14:46.000000000 -0800 +++ b/gme/Data_Reader.cpp 2013-01-25 23:18:54.287696978 -0800 @@ -290,13 +290,13 @@ long Gzip_File_Reader::size() const { return size_; } -long Gzip_File_Reader::read_avail( void* p, long s ) { return gzread( file_, p, s ); } +long Gzip_File_Reader::read_avail( void* p, long s ) { return gzread( (gzFile)file_, p, s ); } -long Gzip_File_Reader::tell() const { return gztell( file_ ); } +long Gzip_File_Reader::tell() const { return gztell( (gzFile)file_ ); } blargg_err_t Gzip_File_Reader::seek( long n ) { - if ( gzseek( file_, n, SEEK_SET ) >= 0 ) + if ( gzseek( (gzFile)file_, n, SEEK_SET ) >= 0 ) return 0; if ( n > size_ ) return eof_error; @@ -307,7 +307,7 @@ { if ( file_ ) { - gzclose( file_ ); + gzclose( (gzFile)file_ ); file_ = 0; } }