From 6b8bbcb551fa81349650967ba1fb4ec740f795aa Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 13 Nov 2009 18:50:34 -0200 Subject: [PATCH] make CTypedefType.declaration_code() honor dll_linkage --- Cython/Compiler/PyrexTypes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index a50760a4..a45a180a 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -202,7 +202,11 @@ class CTypedefType(BaseType): def declaration_code(self, entity_code, for_display = 0, dll_linkage = None, pyrex = 0): name = self.declaration_name(for_display, pyrex) - return self.base_declaration_code(name, entity_code) + if pyrex or for_display: + base_code = name + else: + base_code = public_decl(name, dll_linkage) + return self.base_declaration_code(base_code, entity_code) def declaration_name(self, for_display = 0, pyrex = 0): if pyrex or for_display: -- 2.26.2