diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-10-02 21:51:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 21:51:20 (GMT) |
commit | 61691d833631fed42b86605b09e1535e3e8d40e5 (patch) | |
tree | 766d3ec48508213f7e371728b29c9cf49cdecee9 /Python | |
parent | b3e7045f8314e7b62cd95861d207fe2f97e47198 (diff) | |
download | cpython-61691d833631fed42b86605b09e1535e3e8d40e5.zip cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.gz cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.bz2 |
bpo-38353: Cleanup includes in the internal C API (GH-16548)
Use forward declaration of types to avoid includes in the internal C
API. Add also comment to justify other includes.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 6eb079d..cbd0fa8 100644 --- a/Python/import.c +++ b/Python/import.c @@ -4,6 +4,7 @@ #include "Python-ast.h" #undef Yield /* undefine macro conflicting with <winbase.h> */ +#include "pycore_initconfig.h" #include "pycore_pyerrors.h" #include "pycore_pyhash.h" #include "pycore_pylifecycle.h" |