From: Lisandro Dalcin Date: Fri, 13 Nov 2009 20:50:34 +0000 (-0200) Subject: make CTypedefType.declaration_code() honor dll_linkage X-Git-Tag: 0.12~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b8bbcb551fa81349650967ba1fb4ec740f795aa;p=cython.git make CTypedefType.declaration_code() honor dll_linkage --- 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: