window: prevent ncurses from defining macros

This commit is contained in:
Andrzej Rybczak
2016-11-14 02:18:06 +01:00
parent 516ee31109
commit 6b73f0ebe1

View File

@@ -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 {