diff options
Diffstat (limited to 'src/ArchiveList.cxx')
-rw-r--r-- | src/ArchiveList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ArchiveList.cxx b/src/ArchiveList.cxx index 894e31031..d4d6835d1 100644 --- a/src/ArchiveList.cxx +++ b/src/ArchiveList.cxx @@ -24,9 +24,9 @@ #include "archive/Bzip2ArchivePlugin.hxx" #include "archive/Iso9660ArchivePlugin.hxx" #include "archive/ZzipArchivePlugin.hxx" +#include "util/Macros.hxx" #include <string.h> -#include <glib.h> const struct archive_plugin *const archive_plugins[] = { #ifdef HAVE_BZ2 @@ -42,7 +42,7 @@ const struct archive_plugin *const archive_plugins[] = { }; /** which plugins have been initialized successfully? */ -static bool archive_plugins_enabled[G_N_ELEMENTS(archive_plugins) - 1]; +static bool archive_plugins_enabled[ARRAY_SIZE(archive_plugins) - 1]; #define archive_plugins_for_each_enabled(plugin) \ archive_plugins_for_each(plugin) \ |