From efb98a8a01106bf556d3862ed470251f187311cb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Jul 2019 16:01:56 +0200 Subject: [PATCH] Cleanup file_archive_get_file_backend --- libretro-common/file/archive_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretro-common/file/archive_file.c b/libretro-common/file/archive_file.c index fad89cdd43..2450508a99 100644 --- a/libretro-common/file/archive_file.c +++ b/libretro-common/file/archive_file.c @@ -780,6 +780,7 @@ const struct file_archive_file_backend *file_archive_get_7z_file_backend(void) const struct file_archive_file_backend* file_archive_get_file_backend(const char *path) { +#if defined(HAVE_7ZIP) || defined(HAVE_ZLIB) char newpath[PATH_MAX_LENGTH]; const char *file_ext = NULL; char *last = NULL; @@ -805,6 +806,7 @@ const struct file_archive_file_backend* file_archive_get_file_backend(const char || string_is_equal_noncase(file_ext, "apk") ) return &zlib_backend; +#endif #endif return NULL;