diff options
author | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2017-04-27 17:13:39 +0200 |
---|---|---|
committer | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2017-04-28 11:51:06 +0200 |
commit | 632f18f2710eaf6ee2b3a3aaa0749c7886299e64 (patch) | |
tree | 1dbac3167cc4a1dd5fe4a3ab3e412780a2172bd7 | |
parent | e1e33240b3eeaaca5a4dd5ced7c80d481a68aca1 (diff) | |
download | cython-632f18f2710eaf6ee2b3a3aaa0749c7886299e64.tar.gz |
Do not use special dll linkage for "cdef public" functions
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 5 | ||||
-rw-r--r-- | tests/cygwin_bugs.txt | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 6356e78fe..76fe4e5e4 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -214,8 +214,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): def generate_public_declaration(self, entry, h_code, i_code): h_code.putln("%s %s;" % ( Naming.extern_c_macro, - entry.type.declaration_code( - entry.cname, dll_linkage="DL_IMPORT"))) + entry.type.declaration_code(entry.cname))) if i_code: i_code.putln("cdef extern %s" % ( entry.type.declaration_code(entry.cname, pyrex=1))) @@ -2849,7 +2848,7 @@ def generate_cfunction_declaration(entry, env, code, definition): dll_linkage = "DL_IMPORT" elif entry.visibility == 'public': storage_class = Naming.extern_c_macro - dll_linkage = "DL_EXPORT" + dll_linkage = None elif entry.visibility == 'private': storage_class = "static" dll_linkage = None diff --git a/tests/cygwin_bugs.txt b/tests/cygwin_bugs.txt index 2275bd6f8..d4a43d5aa 100644 --- a/tests/cygwin_bugs.txt +++ b/tests/cygwin_bugs.txt @@ -1,5 +1,3 @@ -module_api - complex_numbers_c89_T398_long_double complex_numbers_T305_long_double int_float_builtins_as_casts_T400_long_double |