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-25720: Remove definition in __APPLE__ to unify compile condition
  • Loading branch information
ma8ma committed Jun 24, 2017
commit 2322fa0bba703aaf42d99956eb0d2de000a2bdc7
9 changes: 1 addition & 8 deletions Include/py_curses.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
#ifdef _BSD_WCHAR_T_DEFINED_
#define _WCHAR_T
#endif

/* the following define is necessary for OS X 10.6; without it, the
Apple-supplied ncurses.h sets NCURSES_OPAQUE to 1, and then Python
can't get at the WINDOW flags field. */
#define NCURSES_OPAQUE 0
#endif /* __APPLE__ */

#ifdef __FreeBSD__
Expand Down Expand Up @@ -44,16 +39,14 @@
#endif
#endif

#ifdef HAVE_NCURSES_H
#if !defined(HAVE_CURSES_IS_PAD) && !defined(WINDOW_HAS_FLAGS)
/* If ncurses doesn't have both is_pad function and _flags field of WINDOW,
there is no method to check whether WINDOW is a pad. Therefore, add the
definitions to make WINDOW to non-opaque type before including ncurses.h.
definitions to make WINDOW to non-opaque type before including [n]curses.h.
*/
#define NCURSES_OPAQUE 0
#define WINDOW_HAS_FLAGS 1
#endif
#endif

#ifdef HAVE_NCURSES_H
#include <ncurses.h>
Expand Down