Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-45434: pyport.h no longer includes <stdlib.h>#28914

Merged
vstinner merged 4 commits intopython:mainpython/cpython:mainfrom
vstinner:stdlibCopy head branch name to clipboard
Oct 13, 2021
Merged

bpo-45434: pyport.h no longer includes <stdlib.h>#28914
vstinner merged 4 commits intopython:mainpython/cpython:mainfrom
vstinner:stdlibCopy head branch name to clipboard

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 13, 2021

Include <stdlib.h> explicitly in C files.

Python.h includes <wchar.h>.

https://bugs.python.org/issue45434

@vstinner
Copy link
Member Author

The build fails on Windows because of these macros which use <stdlib.h>:

extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
#define _Py_BEGIN_SUPPRESS_IPH { _invalid_parameter_handler _Py_old_handler = \
    _set_thread_local_invalid_parameter_handler(_Py_silent_invalid_parameter_handler);
#define _Py_END_SUPPRESS_IPH _set_thread_local_invalid_parameter_handler(_Py_old_handler); }

@vstinner vstinner requested a review from a team as a code owner October 13, 2021 16:49
@vstinner vstinner merged commit aac29af into python:main Oct 13, 2021
@vstinner vstinner deleted the stdlib branch October 13, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.