mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
7c80d15165
commit
01433e4d53
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue