diff -Naur Python-3.7.0-orig/Include/py_curses.h Python-3.7.0/Include/py_curses.h --- Python-3.7.0-orig/Include/py_curses.h 2018-06-27 06:07:35.000000000 +0300 +++ Python-3.7.0/Include/py_curses.h 2018-07-12 10:22:07.314034300 +0300 @@ -36,6 +36,13 @@ #include #endif +#if defined(__MINGW32__) +#include +#if !defined(_ISPAD) +#define _ISPAD 0x10 +#endif +#endif + #ifdef HAVE_NCURSES_H /* configure was checking , but we will use , which has some or all these features. */