Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation warnings with ncurses 6.5
Browse files Browse the repository at this point in the history
Assume #define NCURSES_OPAQUE 0 was only needed with ncurses 5.7.
koutcher committed Apr 30, 2024
1 parent b795fc3 commit beeef76
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.adoc
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ Bug fixes:
- Fix keybinding with +[cmd] not triggering view refreshing. (#1324)
- Fix reopening the blame view from the main view.
- Fix editing when stdin is redirected. (#1330)
- Fix compilation warnings with ncurses 6.5.

tig-2.5.9
---------
2 changes: 2 additions & 0 deletions include/tig/tig.h
Original file line number Diff line number Diff line change
@@ -39,10 +39,12 @@
#endif

/* necessary on Snow Leopard to use WINDOW struct */
#if defined(NCURSES_VERSION_PATCH) && NCURSES_VERSION_PATCH < 20110226
#ifdef NCURSES_OPAQUE
#undef NCURSES_OPAQUE
#endif
#define NCURSES_OPAQUE 0
#endif


#include <assert.h>

0 comments on commit beeef76

Please sign in to comment.