summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 12:46:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 12:46:44 +0000
commit01433e4d53c37ac3620a72ec1b155e3e7be6ab7b (patch)
treed15e1c4712f93c2ce9c99147503779f868569d9e /ext
parent7c80d15165022a040805001586472fa89dd266d9 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 60ba65b15b..4efa4c1db6 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -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;