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

Delta Between Two Patch Sets: Python/random.c

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 7 years, 5 months ago
Right Patch Set: Created 7 years, 4 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Python/fileblocks.c ('k') | Python/thread.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
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__ 4 #ifdef __MINGW32__
5 /* NOTE: All sample MSDN wincrypt programs include this header. 5 /* NOTE: All sample MSDN wincrypt programs include this header.
6 * It is required if we use mingw w32api. 6 * It is required if we use mingw w32api.
7 * Why MSVC builds don't include it ? 7 * Why MSVC builds don't include it ?
8 */ 8 */
9 # include <wincrypt.h> 9 # include <wincrypt.h>
10 #endif 10 #endif
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 (void)win32_urandom((unsigned char *)secret, secret_size, 0); 294 (void)win32_urandom((unsigned char *)secret, secret_size, 0);
295 #else /* #ifdef MS_WINDOWS */ 295 #else /* #ifdef MS_WINDOWS */
296 # ifdef __VMS 296 # ifdef __VMS
297 vms_urandom((unsigned char *)secret, secret_size, 0); 297 vms_urandom((unsigned char *)secret, secret_size, 0);
298 # else 298 # else
299 dev_urandom_noraise((char*)secret, secret_size); 299 dev_urandom_noraise((char*)secret, secret_size);
300 # endif 300 # endif
301 #endif 301 #endif
302 } 302 }
303 } 303 }
LEFTRIGHT

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