summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-12 04:38:54 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-12 04:38:54 (GMT)
commit97300387ec2a8d4ad7e10119c61c315dab21e54a (patch)
tree4ddfd07e98059a5ccbf207ab692b537475f1dafa /Python/getargs.c
parentd6495b5944b9fd5ac3c142cf79957084f47a3024 (diff)
downloadcpython-97300387ec2a8d4ad7e10119c61c315dab21e54a.zip
cpython-97300387ec2a8d4ad7e10119c61c315dab21e54a.tar.gz
cpython-97300387ec2a8d4ad7e10119c61c315dab21e54a.tar.bz2
avoid C++ name mangling for the _Py.*SizeT functions
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 8ee7d2f..8143d33 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -6,6 +6,9 @@
#include <ctype.h>
+#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