jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.41k stars 607 forks source link

Correctly report which version of libncurses was linked #1241

Closed mqudsi closed 1 year ago

mqudsi commented 1 year ago

Later versions of ncurses (20111030 and up) support NCURSES_WIDECHAR even when compiling with libncurses instead of libncursesw.

Have tig correctly report whether it was linked against libncursesw or libncurses based off the same defines we set in the build script and use to determine which headers to include.

(See #1240 as an example of where tig --version incorrectly reports ncursesw instead of ncurses).