forked from amazingfate/loongoffice
3.5 release is needed for MSVC 14.0 (aka VS 2015) support. Python 3.5 removed build toolchain support for MSVC 2013. Because we still need to support it, we duplicate the Python directory in externals and copy old patches and dispatch to this directory for MSVC 2013. Once the support for MSVC 2013 is dropped on master, this directory can be removed again. Change-Id: Idf7bc351239582f583ecbdb53c923cbdcf968089 Reviewed-on: https://gerrit.libreoffice.org/17352 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
16 lines
880 B
Groff
16 lines
880 B
Groff
--- Python-3.3.0/Include/modsupport.h 2012-09-29 10:00:26.000000000 +0200
|
|
+++ Python-3.3.0/Include/modsupport.h 2013-03-08 10:46:28.671938738 +0100
|
|
@@ -26,7 +26,11 @@
|
|
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
|
|
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
|
|
-PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
|
|
+PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...)
|
|
+#ifdef PY_SSIZE_T_CLEAN
|
|
+ Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3)
|
|
+#endif
|
|
+ ;
|
|
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
|
|
const char *, char **, ...);
|
|
PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);
|