From b17deae444722e88838193128ab231dd402a3d5c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 21:51:20 +0200 Subject: [PATCH] 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(). --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- 2.30.2