]> granicus.if.org Git - python/commitdiff
avoid C++ name mangling for the _Py.*SizeT functions
authorAnthony Baxter <anthonybaxter@gmail.com>
Wed, 12 Apr 2006 04:38:54 +0000 (04:38 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Wed, 12 Apr 2006 04:38:54 +0000 (04:38 +0000)
Python/getargs.c

index 8ee7d2fcbb3c04d487b1e96c99c3012feaea790a..8143d33eb00a98d43a9a6e4f2fd9d33d9e57b4b6 100644 (file)
@@ -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