From 4e68eb12ab90eeeab52445a6c200246ada3b8213 Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Wed, 7 Mar 2012 20:32:51 +0100 Subject: [PATCH] Add back HAVE_ZLIB ifdefs for console_ext.c --- console/console_ext.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/console/console_ext.c b/console/console_ext.c index 9b530fa797..f8be615c33 100644 --- a/console/console_ext.c +++ b/console/console_ext.c @@ -24,8 +24,10 @@ #include #include +#ifdef HAVE_ZLIB #include "szlib/zlib.h" #define WRITEBUFFERSIZE (1024 * 512) +#endif #ifdef _WIN32 #include "../posix_string.h" @@ -105,6 +107,8 @@ void ssnes_console_set_default_keybind_names_for_emulator(void) } } +#ifdef HAVE_ZLIB + static int ssnes_extract_currentfile_in_zip(unzFile uf) { char filename_inzip[PATH_MAX]; @@ -216,4 +220,6 @@ int ssnes_extract_zipfile(const char *zip_path) } return 0; -} \ No newline at end of file +} + +#endif