move the ncurses.h include from conky.h to core.c
authorPhil Sutter <phil@nwl.cc>
Thu, 3 Sep 2009 22:08:40 +0000 (00:08 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 3 Sep 2009 22:08:57 +0000 (00:08 +0200)
Fixes some namespace error with libmpdclient.c.

src/conky.h
src/core.c

index 7e841c5..8428899 100644 (file)
@@ -127,10 +127,6 @@ char *strndup(const char *s, size_t n);
 #include "apcupsd.h"
 #endif
 
-#ifdef NCURSES
-#include <ncurses.h>
-#endif
-
 /* sony support */
 #include "sony.h"
 
index bfc636e..b21bcf7 100644 (file)
 #ifdef HAVE_ICONV
 #include <iconv.h>
 
+#ifdef NCURSES
+#include <ncurses.h>
+#endif
+
 #define ICONV_CODEPAGE_LENGTH 20
 
 int register_iconv(iconv_t *new_iconv);