Files
MINGW-packages/mingw-w64-python3/0160-MINGW-add-wincrypt.h-in-Python-random.c.patch
2016-07-12 14:49:26 +03:00

17 lines
565 B
Diff

diff -Naur Python-3.5.2-orig/Python/random.c Python-3.5.2/Python/random.c
--- Python-3.5.2-orig/Python/random.c 2016-06-26 00:38:38.000000000 +0300
+++ Python-3.5.2/Python/random.c 2016-07-12 14:20:42.514300700 +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