зеркало из https://github.com/github/ruby.git
* ext/curses/curses.c: use defined() to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7c80d15165
Коммит
01433e4d53
|
@ -1,3 +1,7 @@
|
|||
Wed Feb 22 21:45:56 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/curses/curses.c: use defined() to suppress a warning.
|
||||
|
||||
Wed Feb 22 21:44:29 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/curses/extconf.rb: refactored.
|
||||
|
|
|
@ -2768,9 +2768,9 @@ 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 HAVE_FUNC_CURSES_VERSION
|
||||
#if defined(HAVE_FUNC_CURSES_VERSION)
|
||||
rb_define_const(mCurses, "VERSION", rb_str_new2(curses_version()));
|
||||
#elif HAVE_VAR_CURSES_VERSION
|
||||
#elif defined(HAVE_VAR_CURSES_VERSION)
|
||||
{
|
||||
/* SVR4 curses has an undocumented and undeclared variable, curses_version. */
|
||||
RUBY_EXTERN char *curses_version;
|
||||
|
|
Загрузка…
Ссылка в новой задаче