Files
MINGW-packages/mingw-w64-python2/0160-MINGW-add-wincrypt.h-in-Python-random.c.patch
2014-06-03 08:54:47 +04:00

17 lines
489 B
Diff

diff -Naur a/Python/random.c b/Python/random.c
--- a/Python/random.c 2014-05-31 22:58:40.000000000 +0400
+++ b/Python/random.c 2014-06-03 08:12:45.011200000 +0400
@@ -1,6 +1,12 @@
#include "Python.h"
#ifdef MS_WINDOWS
#include <windows.h>
+#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 <wincrypt.h>
+#endif
#else
#include <fcntl.h>
#endif