From: Anthony Baxter Date: Wed, 12 Apr 2006 04:38:54 +0000 (+0000) Subject: avoid C++ name mangling for the _Py.*SizeT functions X-Git-Tag: v2.5a2~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97300387ec2a8d4ad7e10119c61c315dab21e54a;p=python avoid C++ name mangling for the _Py.*SizeT functions --- diff --git a/Python/getargs.c b/Python/getargs.c index 8ee7d2fcbb..8143d33eb0 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -6,6 +6,9 @@ #include +#ifdef __cplusplus +extern "C" { +#endif int PyArg_Parse(PyObject *, const char *, ...); int PyArg_ParseTuple(PyObject *, const char *, ...); int PyArg_VaParse(PyObject *, const char *, va_list); @@ -1742,3 +1745,6 @@ _PyArg_NoKeywords(const char *funcname, PyObject *kw) funcname); return 0; } +#ifdef __cplusplus +}; +#endif