summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-10-04 00:43:10 +0200
committerGitHub <noreply@github.com>2019-10-04 00:43:10 +0200
commitc515b573af1189fc46ddcd3323c53ed073b84848 (patch)
tree6505e4d78bda96f9f1480ecaf542a58087398a8e
parent86ec5c65fe04ece16f3aada5292cc62726062ad0 (diff)
downloadcpython-git-c515b573af1189fc46ddcd3323c53ed073b84848.tar.gz
bpo-38353: Fix compiler warning in pycore_initconfig.h (GH-16570)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
-rw-r--r--Include/internal/pycore_initconfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h
index 4a1a111af6..8c6706c95c 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);