Define NCURSES_CONST if curses library doesn't define it.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-08-09 16:55:12 +03:00
parent 01428beb2a
commit 0df9d1ce0b

View File

@ -20,6 +20,11 @@
#include <ncursesw/curses.h>
#endif /* USE_NCURSESW */
/* netbsd-libcurses doesn't define NCURSES_CONST */
#ifndef NCURSES_CONST
#define NCURSES_CONST const
#endif
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/