bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
This commit is contained in:
parent
86ec5c65fe
commit
c515b573af
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue