diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-01 12:35:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-01 12:35:41 (GMT) |
commit | ff6ae4de3874f4922a5883f08bb661c93834b060 (patch) | |
tree | 4f19cb9363c125dc7f91e180a58234b5ad05de9d /pyconfig.h.in | |
parent | 84e252b79eed94bc9e9175f82191322c89e489ad (diff) | |
download | cpython-ff6ae4de3874f4922a5883f08bb661c93834b060.zip cpython-ff6ae4de3874f4922a5883f08bb661c93834b060.tar.gz cpython-ff6ae4de3874f4922a5883f08bb661c93834b060.tar.bz2 |
bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)
Modify the code to use ncurses is_pad() instead of checking WINDOW
_flags field. If your platform does not provide the is_pad(), the
existing way that checks the field will be enabled.
Note: This change does not drop support for platforms where do not
have both WINDOW _flags field and is_pad().
(cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r-- | pyconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in index e93bfe5..bf1efd8 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -158,6 +158,9 @@ /* Define if you have the 'immedok' function. */ #undef HAVE_CURSES_IMMEDOK +/* Define if you have the 'is_pad' function or macro. */ +#undef HAVE_CURSES_IS_PAD + /* Define if you have the 'is_term_resized' function. */ #undef HAVE_CURSES_IS_TERM_RESIZED |