summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-18 16:14:42 (GMT)
committerGitHub <noreply@github.com>2024-03-18 16:14:42 (GMT)
commitf139d840fb543f8357ce9fc8f845c4e945a0ce85 (patch)
tree6460482ad0453e4e5be5c2b26daa1a2b562090b6 /Python/Python-tokenize.c
parent1d95451be1f3080904c00cc4c4a6cc519efdf321 (diff)
downloadcpython-f139d840fb543f8357ce9fc8f845c4e945a0ce85.zip
cpython-f139d840fb543f8357ce9fc8f845c4e945a0ce85.tar.gz
cpython-f139d840fb543f8357ce9fc8f845c4e945a0ce85.tar.bz2
gh-116869: Fix redefinition of the _PyOptimizerObject type (#116963)
Defining a type twice is a C11 feature and so makes the C API incompatible with C99. Fix the issue by only defining the type once. Example of warning (treated as an error): In file included from Include/Python.h:122: Include/cpython/optimizer.h:77:3: error: redefinition of typedef '_PyOptimizerObject' is a C11 feature [-Werror,-Wtypedef-redefinition] } _PyOptimizerObject; ^ build/Include/cpython/optimizer.h:60:35: note: previous definition is here typedef struct _PyOptimizerObject _PyOptimizerObject; ^
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions