Skip to content

Commit bbc18e5

Browse files
committed
meson.build: override NCURSES_WIDECHAR for the non-wide ncurses
1 parent 89f2934 commit bbc18e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

meson.build

+8
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ if curses == 'ncursesw'
101101
elif curses == 'ncurses'
102102
curses_enhanced = true
103103
curses_color = true
104+
105+
# Manually override NCURSES_WIDECHAR; this suppresses definitions
106+
# for symbols which are not present in the non-wide ncurses build.
107+
# This macro really belongs in ncurses.pc, not here.
108+
curses_dep = declare_dependency(
109+
compile_args: '-DNCURSES_WIDECHAR=0',
110+
dependencies: curses_dep,
111+
)
104112
else
105113
# TODO: test this with pdcurses
106114
curses_enhanced = cc.has_header_symbol('curses.h', '_XOPEN_CURSES', dependencies: curses_dep)

0 commit comments

Comments
 (0)