fix for C++ declaration problem
authorStefan Behnel <scoder@users.berlios.de>
Mon, 1 Sep 2008 07:24:10 +0000 (09:24 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 1 Sep 2008 07:24:10 +0000 (09:24 +0200)
Cython/Compiler/ModuleNode.py

index d7fb6b1cf9c23b2f3c71ad2be8ede3566e747e7f..f2987cecaa683fc085a21065992adcc2f21138a5 100644 (file)
@@ -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))