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
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
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 */
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(
24 char *name /* UTF-8 encoded string */
26 -PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
27 +PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
30 char *name; /* ASCII encoded string */