diff -Naur a/Python/random.c b/Python/random.c --- a/Python/random.c 2013-11-10 11:36:41.000000000 +0400 +++ b/Python/random.c 2014-02-18 09:31:48.783800000 +0400 @@ -1,6 +1,12 @@ #include "Python.h" #ifdef MS_WINDOWS #include +#ifdef __MINGW32__ +/* NOTE: All sample MSDN wincrypt programs include header below as it + * is required to ensure that application could be build properly in + * all cases. */ +# include +#endif #else #include #endif