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