diff options
Diffstat (limited to 'ext/curses/curses.c')
-rw-r--r-- | ext/curses/curses.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index fa4b279e26..6045e31d60 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -2768,6 +2768,12 @@ Init_curses(void) rb_define_module_function(mCurses, "def_prog_mode", curses_def_prog_mode, 0); rb_define_module_function(mCurses, "reset_prog_mode", curses_reset_prog_mode, 0); +#ifdef NCURSES_VERSION + rb_define_const(mCurses, "VERSION", rb_sprintf("ncurses %s", NCURSES_VERSION)); +#else + rb_define_const(mCurses, "VERSION", rb_str_new2("unknown")); +#endif + /* * Document-class: Curses::Window * |