fix build failure with Py2.7 under macOS

This commit is contained in:
wmayer
2019-03-31 17:46:32 +02:00
parent de44a747f6
commit ac265261b1

View File

@@ -143,7 +143,11 @@ PyMOD_INIT_FUNC(FreeCAD)
// backwards since the FreeCAD path was likely appended just before
// we were imported.
for (i = PyList_Size(pySysPath) - 1; i >= 0 ; --i) {
#if PY_MAJOR_VERSION >= 3
const char *basePath;
#else
char *basePath;
#endif
PyObject *pyPath = PyList_GetItem(pySysPath, i);
long sz = 0;