From c515b573af1189fc46ddcd3323c53ed073b84848 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 4 Oct 2019 00:43:10 +0200 Subject: [PATCH] bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570) Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition. --- Include/internal/pycore_initconfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h index 4a1a111af68..8c6706c95cb 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);