bump product version to 4.1.6.2
[LibreOffice.git] / python3 / python-3.3.0-implicit-int.patch.1
blob6e4d2b05127d892048db0d9c573744a58a7e016d
1 fix function names in import.h
3 MSVC complains about some declarations in Include/import.h.
4 Apparently the problem is a missing space between PyAPI_FUNC(int) and the
5 function name, leading to concatenated int_PyImport... names and no
6 return type.
8 diff -ru python3.old/Include/import.h python3/Include/import.h
9 --- python3.old/Include/import.h        2012-09-29 10:00:26.000000000 +0200
10 +++ python3/Include/import.h    2012-11-27 16:09:26.449390966 +0100
11 @@ -86,15 +86,15 @@
13  PyAPI_FUNC(void) _PyImport_ReInitLock(void);
15 -PyAPI_FUNC(PyObject *)_PyImport_FindBuiltin(
16 +PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
17      const char *name            /* UTF-8 encoded string */
18      );
19 -PyAPI_FUNC(PyObject *)_PyImport_FindExtensionObject(PyObject *, PyObject *);
20 -PyAPI_FUNC(int)_PyImport_FixupBuiltin(
21 +PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
22 +PyAPI_FUNC(int) _PyImport_FixupBuiltin(
23      PyObject *mod,
24      char *name                  /* UTF-8 encoded string */
25      );
26 -PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
27 +PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
29  struct _inittab {
30      char *name;                 /* ASCII encoded string */