From 692574099a89c792bd6de7761be3df2db71369a7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 16 Aug 2008 21:58:05 +0200 Subject: [PATCH] this patch seems to fix some builtin-related declaration problems for me --- Cython/Compiler/CythonScope.py | 2 +- Cython/Compiler/Symtab.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py index f4896221..289d5743 100644 --- a/Cython/Compiler/CythonScope.py +++ b/Cython/Compiler/CythonScope.py @@ -13,7 +13,7 @@ class CythonScope(ModuleScope): self.shape_entry = self.declare_cfunction('shape', shape_func_type, pos=None, - visibility='public', + visibility='extern', cname='') def create_cython_scope(context): diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 5b547b89..fd691a7c 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -686,7 +686,7 @@ class BuiltinScope(Scope): # If python_equiv == "*", the Python equivalent has the same name # as the entry, otherwise it has the name specified by python_equiv. name = EncodedString(name) - entry = self.declare_cfunction(name, type, None, cname) + entry = self.declare_cfunction(name, type, None, cname, visibility='extern') entry.utility_code = utility_code if python_equiv: if python_equiv == "*": -- 2.26.2