Skip to content

Commit

Permalink
Fix compilation warnings with ncurses 6.5
Browse files Browse the repository at this point in the history
ncurses 6.5 uses opaque typedefs by default.
  • Loading branch information
koutcher committed Apr 30, 2024
1 parent b795fc3 commit d4638be
Show file tree
Hide file tree
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
Expand Up @@ -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
---------
Expand Down
2 changes: 2 additions & 0 deletions include/tig/tig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
#endif

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


#include <assert.h>
Expand Down

0 comments on commit d4638be

Please sign in to comment.