Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bpo-36982, bpo-36630: _NCURSES_EXTENDED_COLOR_FUNCS is always defined,
so use #if instead of #ifdef.
  • Loading branch information
websurfer5 committed May 23, 2019
commit b54ab0d8d3ea376cc3763cd5d24bc27060e45b04
4 changes: 2 additions & 2 deletions Modules/_cursesmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,7 @@ immediately change to the new definition. This function is a no-op on
most terminals; it is active only if can_change_color() returns 1.
*/

#ifdef _NCURSES_EXTENDED_COLOR_FUNCS
#if _NCURSES_EXTENDED_COLOR_FUNCS
#define _CURSES_INIT_COLOR_FUNC init_extended_color
#else
#define _CURSES_INIT_COLOR_FUNC init_color
Expand Down Expand Up @@ -3081,7 +3081,7 @@ If the color-pair was previously initialized, the screen is refreshed and
all occurrences of that color-pair are changed to the new definition.
*/

#ifdef _NCURSES_EXTENDED_COLOR_FUNCS
#if _NCURSES_EXTENDED_COLOR_FUNCS
#define _CURSES_INIT_PAIR_FUNC init_extended_pair
#else
#define _CURSES_INIT_PAIR_FUNC init_pair
Expand Down