diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2017-02-25 22:54:16 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2017-02-25 22:54:16 -0800 |
commit | 25cf792f735e8e7e06e2e4821d1ad21679c27f59 (patch) | |
tree | 4980978ccb7362619f16efae716fa1e498275181 /Cython/Utility/ModuleSetupCode.c | |
parent | 299ad1163ac8e72c1910da3e03013e7634a94b91 (diff) | |
download | cython-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.c | 3 |
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) |