ruby-changes:22699
From: akr <ko1@a...>
Date: Wed, 22 Feb 2012 21:46:54 +0900 (JST)
Subject: [ruby-changes:22699] akr:r34748 (trunk): * ext/curses/curses.c: use defined() to suppress a warning.
akr 2012-02-22 21:46:44 +0900 (Wed, 22 Feb 2012) New Revision: 34748 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34748 Log: * ext/curses/curses.c: use defined() to suppress a warning. Modified files: trunk/ChangeLog trunk/ext/curses/curses.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34747) +++ ChangeLog (revision 34748) @@ -1,3 +1,7 @@ +Wed Feb 22 21:45:56 2012 Tanaka Akira <akr@f...> + + * ext/curses/curses.c: use defined() to suppress a warning. + Wed Feb 22 21:44:29 2012 Tanaka Akira <akr@f...> * ext/curses/extconf.rb: refactored. Index: ext/curses/curses.c =================================================================== --- ext/curses/curses.c (revision 34747) +++ ext/curses/curses.c (revision 34748) @@ -2768,9 +2768,9 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/