From: Max Kellermann Date: Thu, 25 Sep 2008 19:51:20 +0000 (+0200) Subject: don't call lyrics_init if plugin is disabled X-Git-Tag: v0.12_alpha1~139 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b17deae444722e88838193128ab231dd402a3d5c;p=ncmpc.git don't call lyrics_init if plugin is disabled If the lyrics screen is disabled at compile time, don't initialize the lyrics library in main(). --- diff --git a/src/main.c b/src/main.c index 02b1680..2d2b07c 100644 --- a/src/main.c +++ b/src/main.c @@ -25,13 +25,16 @@ #include "options.h" #include "conf.h" #include "command.h" -#include "lyrics.h" #include "ncu.h" #include "screen.h" #include "screen_utils.h" #include "strfsong.h" #include "gcc.h" +#ifdef ENABLE_LYRICS_SCREEN +#include "lyrics.h" +#endif + #include #include #include @@ -420,7 +423,9 @@ main(int argc, const char *argv[]) ncu_init(); +#ifdef ENABLE_LYRICS_SCREEN lyrics_init(); +#endif /* create mpdclient instance */ mpd = mpdclient_new();