diff options
author | Thomas Koutcher <thomas.koutcher@online.fr> | 2024-04-30 23:38:20 +0200 |
---|---|---|
committer | Thomas Koutcher <thomas.koutcher@online.fr> | 2024-04-30 23:38:20 +0200 |
commit | 58683d0cbe285818356d60dfac802ff6b33142f8 (patch) | |
tree | 546ad6d9d1337883c9d42b93523af4860048fd26 | |
parent | b795fc37962540641c96473a4297ac790496b768 (diff) |
Fix compilation warnings with ncurses 6.5
Assume `#define NCURSES_OPAQUE 0` was only needed with ncurses 5.7.
-rw-r--r-- | NEWS.adoc | 1 | ||||
-rw-r--r-- | include/tig/tig.h | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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 --------- diff --git a/include/tig/tig.h b/include/tig/tig.h index c830a897..5bca4d51 100644 --- a/include/tig/tig.h +++ b/include/tig/tig.h @@ -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> |