Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix implicit function declaration for waddnwstr in linux #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,6 @@ void do_color_print(proginfo *cur, char *use_string, int prt_start, int prt_end,
if (!is_control_or_extended_ascii)
{
#if defined(UTF8_SUPPORT) && defined(NCURSES_WIDECHAR)
// FIXME warning: implicit declaration of function ‘waddnwstr’ is invalid in C99 [-Wimplicit-function-declaration]
// see /usr/include/ncurses.h
waddnwstr(win -> win, &wcur, 1);
#else
wprintw(win -> win, "%c", wcur);
Expand Down
4 changes: 2 additions & 2 deletions mt.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ typedef enum { SCHEME_TYPE_EDIT = 0, SCHEME_TYPE_FILTER } filter_edit_scheme_t;
#endif

#if defined(UTF8_SUPPORT) && !defined(__APPLE__)
#if defined(__FreeBSD__) || defined (__linux__)
#if defined(__FreeBSD__)
#include <panel.h>
#include <curses.h>
#else
#else /* if defined (__linux__) */
#include <ncursesw/panel.h>
#include <ncursesw/ncurses.h>
#endif
Expand Down