From 0fe0425dee555027c94a39ca0bca5bac947f4702 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Dec 2008 14:33:41 +0100 Subject: disable archive API without plugins When there are no archive plugins, we do not need the archive API at all. Drop all its overhead. --- src/ls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ls.c') diff --git a/src/ls.c b/src/ls.c index f0f403f44..22b2fc9fc 100644 --- a/src/ls.c +++ b/src/ls.c @@ -84,6 +84,7 @@ hasMusicSuffix(const char *utf8file, unsigned int next) return ret; } +#ifdef ENABLE_ARCHIVE const struct archive_plugin * get_archive_by_suffix(const char *utf8file) { @@ -98,3 +99,4 @@ get_archive_by_suffix(const char *utf8file) } return ret; } +#endif -- cgit v1.2.3