Issue #17596: MINGW: add wincrypt.h in Python/random.c

Based on patch by Roumen Petrov.
This commit is contained in:
Martin Panter 2016-07-29 04:00:44 +00:00
parent 6a09315ff0
commit d2f87472fe
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,9 @@
#include "Python.h"
#ifdef MS_WINDOWS
# include <windows.h>
/* All sample MSDN wincrypt programs include the header below. It is at least
* required with Min GW. */
# include <wincrypt.h>
#else
# include <fcntl.h>
# ifdef HAVE_SYS_STAT_H