Commit c515b573 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)

Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid
a warning on typedef re-definition.
parent 86ec5c65
...@@ -9,7 +9,7 @@ extern "C" { ...@@ -9,7 +9,7 @@ extern "C" {
#endif #endif
/* Forward declaration */ /* Forward declaration */
typedef struct pyruntimestate _PyRuntimeState; struct pyruntimestate;
/* --- PyStatus ----------------------------------------------- */ /* --- PyStatus ----------------------------------------------- */
...@@ -151,7 +151,7 @@ extern PyStatus _PyConfig_Copy( ...@@ -151,7 +151,7 @@ extern PyStatus _PyConfig_Copy(
const PyConfig *config2); const PyConfig *config2);
extern PyStatus _PyConfig_InitPathConfig(PyConfig *config); extern PyStatus _PyConfig_InitPathConfig(PyConfig *config);
extern void _PyConfig_Write(const PyConfig *config, extern void _PyConfig_Write(const PyConfig *config,
_PyRuntimeState *runtime); struct pyruntimestate *runtime);
extern PyStatus _PyConfig_SetPyArgv( extern PyStatus _PyConfig_SetPyArgv(
PyConfig *config, PyConfig *config,
const _PyArgv *args); const _PyArgv *args);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment