From 08efd0b2612ea0e62efa6e1f4fec6ad387fc23a0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 3 Mar 2011 10:13:30 -0500 Subject: [PATCH] Use explicit visibilities in typedef declaration in SingleAssignmentNode.analyse_declarations(). --- Cython/Compiler/Nodes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 9c92b8c4..dbe743b5 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3473,7 +3473,11 @@ class SingleAssignmentNode(AssignmentNode): self.declaration_only = True if not isinstance(lhs, ExprNodes.NameNode): error(lhs.pos, "Invalid declaration.") - env.declare_typedef(lhs.name, type, self.pos, visibility='private') + binding = Binding( + name = lhs.name, c_visibility='private', + visibility='public') + env.WTK_declare_typedef( + binding, base_type = type, pos = self.pos) elif func_name in ['struct', 'union']: self.declaration_only = True -- 2.26.2