diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-03 22:43:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 22:43:10 (GMT) |
commit | c515b573af1189fc46ddcd3323c53ed073b84848 (patch) | |
tree | 6505e4d78bda96f9f1480ecaf542a58087398a8e /Include | |
parent | 86ec5c65fe04ece16f3aada5292cc62726062ad0 (diff) | |
download | cpython-c515b573af1189fc46ddcd3323c53ed073b84848.zip cpython-c515b573af1189fc46ddcd3323c53ed073b84848.tar.gz cpython-c515b573af1189fc46ddcd3323c53ed073b84848.tar.bz2 |
bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid
a warning on typedef re-definition.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_initconfig.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h index 4a1a111..8c6706c 100644 --- a/Include/internal/pycore_initconfig.h +++ b/Include/internal/pycore_initconfig.h @@ -9,7 +9,7 @@ extern "C" { #endif /* Forward declaration */ -typedef struct pyruntimestate _PyRuntimeState; +struct pyruntimestate; /* --- PyStatus ----------------------------------------------- */ @@ -151,7 +151,7 @@ extern PyStatus _PyConfig_Copy( const PyConfig *config2); extern PyStatus _PyConfig_InitPathConfig(PyConfig *config); extern void _PyConfig_Write(const PyConfig *config, - _PyRuntimeState *runtime); + struct pyruntimestate *runtime); extern PyStatus _PyConfig_SetPyArgv( PyConfig *config, const _PyArgv *args); |