diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 22:04:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 22:47:39 +0200 |
commit | 509f8dab8946cfc311def89f62352c0881e73348 (patch) | |
tree | 913fbb714704bcffc0ca6b8f44cdfb293ec9ee24 /src/InputRegistry.cxx | |
parent | 77429b6dd35e23efac92630bab35d935b9496345 (diff) | |
download | mpd-509f8dab8946cfc311def89f62352c0881e73348.tar.gz mpd-509f8dab8946cfc311def89f62352c0881e73348.tar.xz mpd-509f8dab8946cfc311def89f62352c0881e73348.zip |
Util/Macros: replacement for GLib's G_N_ELEMENTS()
Diffstat (limited to '')
-rw-r--r-- | src/InputRegistry.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/InputRegistry.cxx b/src/InputRegistry.cxx index 75a106c24..d7481ebee 100644 --- a/src/InputRegistry.cxx +++ b/src/InputRegistry.cxx @@ -19,6 +19,7 @@ #include "config.h" #include "InputRegistry.hxx" +#include "util/Macros.hxx" #include "input/FileInputPlugin.hxx" #ifdef ENABLE_ARCHIVE @@ -45,8 +46,6 @@ #include "input/DespotifyInputPlugin.hxx" #endif -#include <glib.h> - const struct input_plugin *const input_plugins[] = { &input_plugin_file, #ifdef ENABLE_ARCHIVE @@ -67,7 +66,7 @@ const struct input_plugin *const input_plugins[] = { #ifdef ENABLE_DESPOTIFY &input_plugin_despotify, #endif - NULL + nullptr }; -bool input_plugins_enabled[G_N_ELEMENTS(input_plugins) - 1]; +bool input_plugins_enabled[ARRAY_SIZE(input_plugins) - 1]; |