From: Stefan Behnel Date: Mon, 1 Sep 2008 07:24:10 +0000 (+0200) Subject: fix for C++ declaration problem X-Git-Tag: 0.9.9.2.beta~63^2~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50cef2fe47f503a3e17079f4e595e20d15771031;p=cython.git fix for C++ declaration problem --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index d7fb6b1c..f2987cec 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -759,10 +759,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): dll_linkage = dll_linkage) if entry.visibility == 'private': storage_class = "static " - elif entry.visibility == 'extern': - storage_class = "%s " % Naming.extern_c_macro else: - storage_class = "" + storage_class = "%s " % Naming.extern_c_macro code.putln("%s%s; /*proto*/" % ( storage_class, header))