From: Max Kellermann Date: Wed, 10 Dec 2008 18:55:37 +0000 (+0100) Subject: hscroll: don't compile source in ncmpc-mini mode X-Git-Tag: release-0.13~75 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de82a840d22c418351036c09a7fb466d1ffb4efd;p=ncmpc.git hscroll: don't compile source in ncmpc-mini mode This source is not required with --enable-mini. --- diff --git a/src/Makefile.am b/src/Makefile.am index 02c7dc8..f16e775 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,7 +66,6 @@ ncmpc_SOURCES = \ screen_file.c\ list_window.c\ colors.c\ - hscroll.c \ charset.c \ match.c \ wreadln.c\ @@ -76,7 +75,9 @@ ncmpc_SOURCES = \ if NCMPC_MINI else -ncmpc_SOURCES += conf.c +ncmpc_SOURCES += \ + hscroll.c \ + conf.c endif if ENABLE_HELP_SCREEN diff --git a/src/hscroll.c b/src/hscroll.c index 2915a11..d3e47d8 100644 --- a/src/hscroll.c +++ b/src/hscroll.c @@ -18,14 +18,11 @@ #include "hscroll.h" #include "charset.h" -#include "config.h" #include #include #include -#ifndef NCMPC_MINI - // FIXME: utf-8 length char * strscroll(char *str, char *separator, int width, scroll_state_t *st) @@ -73,5 +70,3 @@ strscroll(char *str, char *separator, int width, scroll_state_t *st) g_free(tmp); return buf; } - -#endif diff --git a/src/hscroll.h b/src/hscroll.h index 47ace33..6b623fb 100644 --- a/src/hscroll.h +++ b/src/hscroll.h @@ -20,12 +20,8 @@ #ifndef HSCROLL_H #define HSCROLL_H -#include "config.h" - #include -#ifndef NCMPC_MINI - typedef struct { gsize offset; GTime t; /* GTime is equivalent to time_t */ @@ -34,5 +30,3 @@ typedef struct { char *strscroll(char *str, char *separator, int width, scroll_state_t *st); #endif - -#endif diff --git a/src/screen.c b/src/screen.c index 9c65e78..f6b41c1 100644 --- a/src/screen.c +++ b/src/screen.c @@ -21,7 +21,6 @@ #include "screen_utils.h" #include "config.h" #include "i18n.h" -#include "hscroll.h" #include "charset.h" #include "mpdclient.h" #include "utils.h" @@ -29,6 +28,10 @@ #include "colors.h" #include "strfsong.h" +#ifndef NCMPC_MINI +#include "hscroll.h" +#endif + #include #include #include diff --git a/src/screen_play.c b/src/screen_play.c index f8f65ba..f48254c 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -20,7 +20,6 @@ #include "i18n.h" #include "charset.h" #include "options.h" -#include "hscroll.h" #include "mpdclient.h" #include "utils.h" #include "strfsong.h" @@ -31,6 +30,10 @@ #include "screen_utils.h" #include "screen_play.h" +#ifndef NCMPC_MINI +#include "hscroll.h" +#endif + #include #include #include