Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / python3 / python-3.3.0-gcc-4.8.patch.1
blob6af06b338e96a4b68cfeb0fda0e77799224b9c79
1 diff -ru python3.orig/Include/modsupport.h python3/Include/modsupport.h
2 --- python3.orig/Include/modsupport.h   2015-07-05 18:50:06.000000000 +0200
3 +++ python3/Include/modsupport.h        2015-07-26 18:21:30.717680314 +0200
4 @@ -26,7 +26,11 @@
5  /* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
6  #if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
7  PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
8 -PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
9 +PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...)
10 +#ifdef PY_SSIZE_T_CLEAN
11 +    Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3)
12 +#endif
13 +    ;
14  PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
15                                                    const char *, char **, ...);
16  PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);