diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-04 00:21:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 00:21:05 (GMT) |
commit | e982d8b64f5d358c578bfca5cdfe4524dbc74000 (patch) | |
tree | da1c2c20db424c1b89595655b396a0bd000090bd /Include/internal/pycore_traceback.h | |
parent | c515b573af1189fc46ddcd3323c53ed073b84848 (diff) | |
download | cpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.zip cpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.tar.gz cpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.tar.bz2 |
bpo-38353: Fix compiler warning in internal headers (GH-16573)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid
a warning on typedef re-definition.
Diffstat (limited to 'Include/internal/pycore_traceback.h')
-rw-r--r-- | Include/internal/pycore_traceback.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h index 8e58184..99443d7 100644 --- a/Include/internal/pycore_traceback.h +++ b/Include/internal/pycore_traceback.h @@ -9,7 +9,7 @@ extern "C" { #endif /* Forward declaration */ -typedef struct _is PyInterpreterState; +struct _is; /* Write the Python traceback into the file 'fd'. For example: @@ -57,7 +57,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback( PyAPI_FUNC(const char*) _Py_DumpTracebackThreads( int fd, - PyInterpreterState *interp, + struct _is *interp, PyThreadState *current_tstate); /* Write a Unicode object into the file descriptor fd. Encode the string to |