Commit 632f18f2 authored by Jeroen Demeyer's avatar Jeroen Demeyer

Do not use special dll linkage for "cdef public" functions

parent e1e33240
...@@ -214,8 +214,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -214,8 +214,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def generate_public_declaration(self, entry, h_code, i_code): def generate_public_declaration(self, entry, h_code, i_code):
h_code.putln("%s %s;" % ( h_code.putln("%s %s;" % (
Naming.extern_c_macro, Naming.extern_c_macro,
entry.type.declaration_code( entry.type.declaration_code(entry.cname)))
entry.cname, dll_linkage="DL_IMPORT")))
if i_code: if i_code:
i_code.putln("cdef extern %s" % ( i_code.putln("cdef extern %s" % (
entry.type.declaration_code(entry.cname, pyrex=1))) entry.type.declaration_code(entry.cname, pyrex=1)))
...@@ -2849,7 +2848,7 @@ def generate_cfunction_declaration(entry, env, code, definition): ...@@ -2849,7 +2848,7 @@ def generate_cfunction_declaration(entry, env, code, definition):
dll_linkage = "DL_IMPORT" dll_linkage = "DL_IMPORT"
elif entry.visibility == 'public': elif entry.visibility == 'public':
storage_class = Naming.extern_c_macro storage_class = Naming.extern_c_macro
dll_linkage = "DL_EXPORT" dll_linkage = None
elif entry.visibility == 'private': elif entry.visibility == 'private':
storage_class = "static" storage_class = "static"
dll_linkage = None dll_linkage = None
......
module_api
complex_numbers_c89_T398_long_double complex_numbers_c89_T398_long_double
complex_numbers_T305_long_double complex_numbers_T305_long_double
int_float_builtins_as_casts_T400_long_double int_float_builtins_as_casts_T400_long_double
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment