New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw: add wincrypt.h in Python/random.c #61796
Comments
split of bpo-3871 |
Why the "#ifdef __MINGW32__"? I suppose the include is harmless anyway. |
Yes I would tend to think including <wincrypt.h> would be harmless on Windows, but I don’t have a native Windows to try it out on. Here is a proposed patch anyway. It would be good for someone to be able to confirm it doesn’t break the normal Windows build. |
I think this one should be fairly safe; any breakage should be pretty obvious by watching the buildbots. |
New changeset 11ed7c49f5df by Martin Panter in branch 'default': |
For the record, the first error without this patch is ../Python/random.c:26:1: error: unknown type name 'HCRYPTPROV' According to <https://msdn.microsoft.com/en-us/library/windows/desktop/aa382471%28v=vs.85%29.aspx\>, the header to use is <Wincrypt.h>, but we use lowercase <wincrypt.h> to avoid a problem with case sensitivity. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: