Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2f8747

Browse files
committed
Issue #17596: MINGW: add wincrypt.h in Python/random.c
Based on patch by Roumen Petrov.
1 parent 6a09315 commit d2f8747

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.6.0 alpha 4
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #17596: Include <wincrypt.h> to help with Min GW building.
14+
1315
- Issue #27507: Add integer overflow check in bytearray.extend(). Patch by
1416
Xiang Zhang.
1517

Python/random.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include "Python.h"
22
#ifdef MS_WINDOWS
33
# include <windows.h>
4+
/* All sample MSDN wincrypt programs include the header below. It is at least
5+
* required with Min GW. */
6+
# include <wincrypt.h>
47
#else
58
# include <fcntl.h>
69
# ifdef HAVE_SYS_STAT_H

0 commit comments

Comments
 (0)