summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2017-02-25 22:54:16 -0800
committerRobert Bradshaw <robertwb@gmail.com>2017-02-25 22:54:16 -0800
commit25cf792f735e8e7e06e2e4821d1ad21679c27f59 (patch)
tree4980978ccb7362619f16efae716fa1e498275181 /Cython/Utility/ModuleSetupCode.c
parent299ad1163ac8e72c1910da3e03013e7634a94b91 (diff)
downloadcython-25cf792f735e8e7e06e2e4821d1ad21679c27f59.tar.gz
Excape comma in dll_linkage macros.
This allows return types such as std::map<K, V>. Fixes #1599
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 502bcad55..bf49c3bc8 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -24,6 +24,9 @@
#define DL_EXPORT(t) t
#endif
+// For use in DL_IMPORT/DL_EXPORT macros.
+#define __PYX_COMMA ,
+
#ifndef HAVE_LONG_LONG
// CPython has required PY_LONG_LONG support for years, even if HAVE_LONG_LONG is not defined for us
#if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000)