Skip to content

Commit c515b57

Browse files
authored
bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
1 parent 86ec5c6 commit c515b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_initconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extern "C" {
99
#endif
1010

1111
/* Forward declaration */
12-
typedef struct pyruntimestate _PyRuntimeState;
12+
struct pyruntimestate;
1313

1414
/* --- PyStatus ----------------------------------------------- */
1515

@@ -151,7 +151,7 @@ extern PyStatus _PyConfig_Copy(
151151
const PyConfig *config2);
152152
extern PyStatus _PyConfig_InitPathConfig(PyConfig *config);
153153
extern void _PyConfig_Write(const PyConfig *config,
154-
_PyRuntimeState *runtime);
154+
struct pyruntimestate *runtime);
155155
extern PyStatus _PyConfig_SetPyArgv(
156156
PyConfig *config,
157157
const _PyArgv *args);

0 commit comments

Comments
 (0)