Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(27)

Side by Side Diff: Python/random.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Python/fileblocks.c ('k') | Python/thread.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "Python.h" 1 #include "Python.h"
2 #ifdef MS_WINDOWS 2 #ifdef MS_WINDOWS
3 #include <windows.h> 3 #include <windows.h>
4 #ifdef __MINGW32__
5 /* NOTE: All sample MSDN wincrypt programs include this header.
6 * It is required if we use mingw w32api.
7 * Why MSVC builds don't include it ?
8 */
9 # include <wincrypt.h>
10 #endif
4 #else 11 #else
5 #include <fcntl.h> 12 #include <fcntl.h>
6 #endif 13 #endif
7 14
8 #ifdef Py_DEBUG 15 #ifdef Py_DEBUG
9 int _Py_HashSecret_Initialized = 0; 16 int _Py_HashSecret_Initialized = 0;
10 #else 17 #else
11 static int _Py_HashSecret_Initialized = 0; 18 static int _Py_HashSecret_Initialized = 0;
12 #endif 19 #endif
13 20
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 (void)win32_urandom((unsigned char *)secret, secret_size, 0); 294 (void)win32_urandom((unsigned char *)secret, secret_size, 0);
288 #else /* #ifdef MS_WINDOWS */ 295 #else /* #ifdef MS_WINDOWS */
289 # ifdef __VMS 296 # ifdef __VMS
290 vms_urandom((unsigned char *)secret, secret_size, 0); 297 vms_urandom((unsigned char *)secret, secret_size, 0);
291 # else 298 # else
292 dev_urandom_noraise((char*)secret, secret_size); 299 dev_urandom_noraise((char*)secret, secret_size);
293 # endif 300 # endif
294 #endif 301 #endif
295 } 302 }
296 } 303 }
OLDNEW
« no previous file with comments | « Python/fileblocks.c ('k') | Python/thread.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+