window: prevent ncurses from defining macros

master
Andrzej Rybczak 9 years ago
parent 516ee31109
commit 6b73f0ebe1
  1. 6
      src/window.h

@ -21,6 +21,8 @@
#ifndef NCMPCPP_WINDOW_H #ifndef NCMPCPP_WINDOW_H
#define NCMPCPP_WINDOW_H #define NCMPCPP_WINDOW_H
#define NCURSES_NOMACROS 1
#include "config.h" #include "config.h"
#include "curses.h" #include "curses.h"
@ -39,10 +41,6 @@
# define BUTTON5_PRESSED (1U << 27) # define BUTTON5_PRESSED (1U << 27)
#endif // NCURSES_MOUSE_VERSION == 1 #endif // NCURSES_MOUSE_VERSION == 1
// undefine macros with colliding names
#undef border
#undef scroll
/// NC namespace provides set of easy-to-use /// NC namespace provides set of easy-to-use
/// wrappers over original curses library. /// wrappers over original curses library.
namespace NC { namespace NC {

Loading…
Cancel
Save