changeset: 102482:11ed7c49f5df user: Martin Panter date: Fri Jul 29 04:00:44 2016 +0000 files: Misc/NEWS Python/random.c description: Issue #17596: MINGW: add wincrypt.h in Python/random.c Based on patch by Roumen Petrov. diff -r 6fbb7c9d77c6 -r 11ed7c49f5df Misc/NEWS --- a/Misc/NEWS Fri Jul 29 01:49:37 2016 +0000 +++ b/Misc/NEWS Fri Jul 29 04:00:44 2016 +0000 @@ -10,6 +10,8 @@ Core and Builtins ----------------- +- Issue #17596: Include to help with Min GW building. + - Issue #27507: Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang. diff -r 6fbb7c9d77c6 -r 11ed7c49f5df Python/random.c --- a/Python/random.c Fri Jul 29 01:49:37 2016 +0000 +++ b/Python/random.c Fri Jul 29 04:00:44 2016 +0000 @@ -1,6 +1,9 @@ #include "Python.h" #ifdef MS_WINDOWS # include +/* All sample MSDN wincrypt programs include the header below. It is at least + * required with Min GW. */ +# include #else # include # ifdef HAVE_SYS_STAT_H