summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-04 12:27:20 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-04 12:27:20 (GMT)
commit46854bc7e4784931a98748011a1181c88ef50cdc (patch)
treed941b67d9a73ccbc6c1b64b80b00cdde2bfa0374 /Include
parent76c21bdb464d45b664d7532d9f5fac919dcdecb2 (diff)
downloadcpython-46854bc7e4784931a98748011a1181c88ef50cdc.zip
cpython-46854bc7e4784931a98748011a1181c88ef50cdc.tar.gz
cpython-46854bc7e4784931a98748011a1181c88ef50cdc.tar.bz2
PyAPI_FUNC() the PyArg_.*SizeT forms. Without this, cygwin has hysterics.
(see buildbot)
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index c356f03..9b4d2b4 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -19,6 +19,18 @@ extern "C" {
#define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT
#define PyArg_BuildValue _PyArg_BuildValue_SizeT
#define PyArg_VaBuildValue _PyArg_VaBuildValue_SizeT
+#else
+#if HAVE_DECLSPEC_DLL
+PyAPI_FUNC(int) _PyArg_Parse_SizeT(PyObject *, char *, ...);
+PyAPI_FUNC(int) _PyArg_ParseTuple_SizeT(PyObject *, char *, ...);
+PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywords_SizeT(PyObject *, PyObject *,
+ const char *, char **, ...);
+PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);
+PyAPI_FUNC(int) _PyArg_VaParse_SizeT(PyObject *, char *, va_list);
+PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *, PyObject *,
+ const char *, char **, va_list);
+PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
+#endif
#endif
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);