This commit is contained in:
twinaphex 2016-08-27 02:43:06 +02:00
parent f851440a6b
commit 95de19320d

View File

@ -312,6 +312,7 @@ static int content_7zip_file_read(
return outsize; return outsize;
} }
#ifdef HAVE_COMPRESSION
/** /**
* filename_split_archive: * filename_split_archive:
* @str : filename to turn into a string list * @str : filename to turn into a string list
@ -320,7 +321,7 @@ static int content_7zip_file_read(
* *
* Returns: new string list if successful, otherwise NULL. * Returns: new string list if successful, otherwise NULL.
*/ */
struct string_list *filename_split_archive(const char *path) static struct string_list *filename_split_archive(const char *path)
{ {
union string_list_elem_attr attr; union string_list_elem_attr attr;
struct string_list *list = string_list_new(); struct string_list *list = string_list_new();
@ -359,6 +360,7 @@ error:
string_list_free(list); string_list_free(list);
return NULL; return NULL;
} }
#endif
static struct string_list *compressed_7zip_file_list_new( static struct string_list *compressed_7zip_file_list_new(
const char *path, const char* ext) const char *path, const char* ext)