ports/audio/ncmpcpp/patches/patch-src_curses_window_h

36 lines
792 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Backout commit
---8<---
commit 6b73f0ebe1c05cb2b3b6973662e7b6c95eba4530
Author: Andrzej Rybczak <electricityispower@gmail.com>
Date: Mon Nov 14 01:18:06 2016
window: prevent ncurses from defining macros
---8<---
to fix a problem with text being "invisible" when typing in any
prompt
Index: src/curses/window.h
--- src/curses/window.h.orig
+++ src/curses/window.h
@@ -21,8 +21,6 @@
#ifndef NCMPCPP_WINDOW_H
#define NCMPCPP_WINDOW_H
-#define NCURSES_NOMACROS 1
-
#include "config.h"
#include "curses.h"
@@ -40,6 +38,9 @@
#if NCURSES_MOUSE_VERSION == 1
# define BUTTON5_PRESSED (1U << 27)
#endif // NCURSES_MOUSE_VERSION == 1
+
+// undefine macro with colliding name
+#undef scroll
/// NC namespace provides set of easy-to-use
/// wrappers over original curses library.