window: prevent ncurses from defining macros
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#ifndef NCMPCPP_WINDOW_H
|
||||
#define NCMPCPP_WINDOW_H
|
||||
|
||||
#define NCURSES_NOMACROS 1
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "curses.h"
|
||||
@@ -39,10 +41,6 @@
|
||||
# define BUTTON5_PRESSED (1U << 27)
|
||||
#endif // NCURSES_MOUSE_VERSION == 1
|
||||
|
||||
// undefine macros with colliding names
|
||||
#undef border
|
||||
#undef scroll
|
||||
|
||||
/// NC namespace provides set of easy-to-use
|
||||
/// wrappers over original curses library.
|
||||
namespace NC {
|
||||
|
||||
Reference in New Issue
Block a user