mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
gh-108765: Move standard includes to Python.h (#108769)
* Move <ctype.h>, <limits.h> and <stdarg.h> standard includes to Python.h. * Move "pystats.h" include from object.h to Python.h. * Remove redundant "pymem.h" include in objimpl.h and "pyport.h" include in pymem.h; Python.h already includes them earlier. * Remove redundant <wchar.h> include in unicodeobject.h; Python.h already includes it. * Move _SGI_MP_SOURCE define from Python.h to pyport.h. * pycore_condvar.h includes explicitly <unistd.h> for the _POSIX_THREADS macro.
This commit is contained in:
parent
0e01fac315
commit
45b9e6a61f
10 changed files with 45 additions and 61 deletions
|
|
@ -1,12 +1,8 @@
|
|||
/* The PyMem_ family: low-level memory allocation interfaces.
|
||||
See objimpl.h for the PyObject_ memory family.
|
||||
*/
|
||||
// The PyMem_ family: low-level memory allocation interfaces.
|
||||
// See objimpl.h for the PyObject_ memory family.
|
||||
|
||||
#ifndef Py_PYMEM_H
|
||||
#define Py_PYMEM_H
|
||||
|
||||
#include "pyport.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -100,5 +96,4 @@ PyAPI_FUNC(void) PyMem_Free(void *ptr);
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !Py_PYMEM_H */
|
||||
#endif // !Py_PYMEM_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue