This commit is contained in:
p.kosyh 2010-07-10 17:18:52 +00:00
parent 1643db91c3
commit 7a53efa468
6 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#ifdef _USE_UNPACK
/* ioapi.h -- IO base function header for compress/uncompress .zip /* ioapi.h -- IO base function header for compress/uncompress .zip
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
@ -233,3 +234,4 @@ void fill_fopen64_filefunc (zlib_filefunc64_def* pzlib_filefunc_def)
pzlib_filefunc_def->zerror_file = ferror_file_func; pzlib_filefunc_def->zerror_file = ferror_file_func;
pzlib_filefunc_def->opaque = NULL; pzlib_filefunc_def->opaque = NULL;
} }
#endif

View file

@ -1,3 +1,4 @@
#ifdef _USE_UNPACK
/* iowin32.c -- IO base function header for compress/uncompress .zip /* iowin32.c -- IO base function header for compress/uncompress .zip
Version 1.1, February 14h, 2010 Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
@ -387,3 +388,4 @@ void fill_win32_filefunc64W(zlib_filefunc64_def* pzlib_filefunc_def)
pzlib_filefunc_def->zerror_file = win32_error_file_func; pzlib_filefunc_def->zerror_file = win32_error_file_func;
pzlib_filefunc_def->opaque = NULL; pzlib_filefunc_def->opaque = NULL;
} }
#endif

View file

@ -22,6 +22,7 @@ char *encode_sw = NULL;
char *encode_output = NULL; char *encode_output = NULL;
char *mode_sw = NULL; char *mode_sw = NULL;
#ifdef _USE_UNPACK
extern int unpack(const char *zipfilename, const char *where); extern int unpack(const char *zipfilename, const char *where);
extern char zip_game_dirname[]; extern char zip_game_dirname[];
@ -43,6 +44,7 @@ static int setup_zip(const char *file, char *p)
games_sw = p; games_sw = p;
return 0; return 0;
} }
#endif
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View file

@ -1,3 +1,4 @@
#ifdef _USE_UNPACK
/* /*
miniunz.c miniunz.c
Version 1.1, February 14h, 2010 Version 1.1, February 14h, 2010
@ -390,3 +391,4 @@ int unpack(const char *zipfilename, const char *dirname)
#endif #endif
return ret_value; return ret_value;
} }
#endif

View file

@ -1,3 +1,4 @@
#ifdef _USE_UNPACK
/* unzip.c -- IO for uncompress .zip files using zlib /* unzip.c -- IO for uncompress .zip files using zlib
Version 1.1, February 14h, 2010 Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
@ -2123,3 +2124,4 @@ extern int ZEXPORT unzSetOffset (unzFile file, uLong pos)
{ {
return unzSetOffset64(file,pos); return unzSetOffset64(file,pos);
} }
#endif

View file

@ -246,7 +246,7 @@ void debug_done()
{ {
FreeConsole(); FreeConsole();
} }
#ifdef _USE_BROWSE
char *open_file_dialog(void) char *open_file_dialog(void)
{ {
OPENFILENAME ofn; OPENFILENAME ofn;
@ -276,3 +276,4 @@ char *open_file_dialog(void)
unix_path(ofn.lpstrFile); unix_path(ofn.lpstrFile);
return ofn.lpstrFile; return ofn.lpstrFile;
} }
#endif