Util/Macros: replacement for GLib's G_N_ELEMENTS()
This commit is contained in:
@@ -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) \
|
||||
|
Reference in New Issue
Block a user