Skip to content

Commit 3c4b269

Browse files
committed
Define Curses.colors even if COLORS is a macro (fixes #69)
1 parent 026f3e9 commit 3c4b269

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/curses/curses.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,9 +1366,9 @@ curses_can_change_color(VALUE obj)
13661366
return can_change_color() ? Qtrue : Qfalse;
13671367
}
13681368

1369-
#if defined(HAVE_COLORS)
1369+
#if defined(HAVE_COLORS) || defined(COLORS)
13701370
/*
1371-
* Document-method: Curses.color
1371+
* Document-method: Curses.colors
13721372
*
13731373
* returns COLORS
13741374
*/
@@ -1398,7 +1398,7 @@ curses_color_content(VALUE obj, VALUE color)
13981398
}
13991399

14001400

1401-
#if defined(HAVE_COLOR_PAIRS)
1401+
#if defined(HAVE_COLOR_PAIRS) || defined(COLOR_PAIRS)
14021402
/*
14031403
* Document-method: Curses.color_pairs
14041404
*

0 commit comments

Comments
 (0)