From 12ab00cd2e29b41dbc3367725b43f4603022e9ad Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 4 Sep 2009 00:08:40 +0200 Subject: [PATCH] move the ncurses.h include from conky.h to core.c Fixes some namespace error with libmpdclient.c. --- src/conky.h | 4 ---- src/core.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conky.h b/src/conky.h index 7e841c5b..84288992 100644 --- a/src/conky.h +++ b/src/conky.h @@ -127,10 +127,6 @@ char *strndup(const char *s, size_t n); #include "apcupsd.h" #endif -#ifdef NCURSES -#include -#endif - /* sony support */ #include "sony.h" diff --git a/src/core.c b/src/core.c index bfc636ed..b21bcf7e 100644 --- a/src/core.c +++ b/src/core.c @@ -65,6 +65,10 @@ #ifdef HAVE_ICONV #include +#ifdef NCURSES +#include +#endif + #define ICONV_CODEPAGE_LENGTH 20 int register_iconv(iconv_t *new_iconv);