Mercurial > hg
diff mcabber/src/screen.h @ 935:97e6a6da2b2c
Fix ncurses #include (again)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 08 Jul 2006 15:32:55 +0200 |
parents | a75f7a13df7b |
children | 3e592fb33aab |
line wrap: on
line diff
--- a/mcabber/src/screen.h Sat Jul 08 12:47:54 2006 +0200 +++ b/mcabber/src/screen.h Sat Jul 08 15:32:55 2006 +0200 @@ -1,9 +1,18 @@ #ifndef __SCREEN_H__ #define __SCREEN_H__ 1 -#include <ncurses.h> #include <glib.h> +#if HAVE_NCURSESW_NCURSES_H +# include <ncursesw/ncurses.h> +#elif HAVE_NCURSES_NCURSES_H +# include <ncurses/ncurses.h> +#elif HAVE_NCURSES_H +# include <ncurses.h> +#else +# include <curses.h> +#endif + #include "logprint.h" // Length of the timestamp & flag prefix in the chat buffer window @@ -67,7 +76,7 @@ time_t timestamp, guint prefix); void scr_WriteOutgoingMessage(const char *jidto, const char *text); void scr_ShowBuddyWindow(void); -bool scr_BuddyBufferExists(const char *jid); +int scr_BuddyBufferExists(const char *jid); inline void scr_UpdateBuddyWindow(void); inline void scr_set_chatmode(int enable); inline void scr_set_multimode(int enable, char *subject); @@ -79,7 +88,7 @@ inline void scr_Beep(void); -void scr_CheckAutoAway(bool activity); +void scr_CheckAutoAway(int activity); // For commands... void scr_RosterTop(void);