Files
MINGW-packages/mingw-w64-python3/0160-MINGW-add-wincrypt.h-in-Python-random.c.patch
2015-09-21 15:47:39 +03:00

17 lines
565 B
Diff

diff -Naur Python-3.5.0-orig/Python/random.c Python-3.5.0/Python/random.c
--- Python-3.5.0-orig/Python/random.c 2015-09-13 14:41:26.000000000 +0300
+++ Python-3.5.0/Python/random.c 2015-09-21 13:41:10.674782000 +0300
@@ -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>
# ifdef HAVE_SYS_STAT_H