disable archive API without plugins

When there are no archive plugins, we do not need the archive API at
all.  Drop all its overhead.
This commit is contained in:
Max Kellermann
2008-12-27 14:33:41 +01:00
parent 4c13a276c4
commit 0fe0425dee
6 changed files with 43 additions and 5 deletions

View File

@@ -20,7 +20,10 @@
#include "config.h"
#include "input_file.h"
#ifdef ENABLE_ARCHIVE
#include "input_archive.h"
#endif
#ifdef HAVE_CURL
#include "input_curl.h"
@@ -31,7 +34,9 @@
static const struct input_plugin *const input_plugins[] = {
&input_plugin_file,
#ifdef ENABLE_ARCHIVE
&input_plugin_archive,
#endif
#ifdef HAVE_CURL
&input_plugin_curl,
#endif