diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index dbbdef6cd55f9c70feabc89d2197bf38f2366dbb..a7b8077ffe08e8ea10629645795e48d6b7a0f211 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -845,8 +845,9 @@ class CStructOrUnionDefNode(StatNode): if need_typedef_indirection: # C can't handle typedef structs that refer to themselves. struct_entry = self.entry - cname = env.new_const_cname() - self.entry = env.declare_typedef(self.name, struct_entry.type, self.pos, cname = self.cname, visibility='ignore') + self.entry = env.declare_typedef( + self.name, struct_entry.type, self.pos, + cname = self.cname, visibility='ignore') struct_entry.type.typedef_flag = False struct_entry.cname = struct_entry.type.cname = env.new_const_cname()