mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-38353: Fix compiler warning in internal headers (GH-16573)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
This commit is contained in:
parent
c515b573af
commit
e982d8b64f
3 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue