[vtk-developers] Python-related dashboard build errors with new clang
Ben Boeckel
ben.boeckel at kitware.com
Thu Nov 12 12:04:04 EST 2015
On Thu, Nov 12, 2015 at 09:50:25 -0700, David Gobbi wrote:
> I haven't seen it (still using Xcode 6.1), but I can guess at a fix.
>
> The VTK classes never include Python.h directly, they always
> include "vtkPython.h" which already has a bunch of fixes for
> issues like this one.
>
> To fix in vtkPython.h, an "#undef toupper" will have to be added
> after "#include <Python.h>" (with checks for the clang version).
Why not just:
#ifdef toupper
#undef toupper
#endif
?
--Ben
More information about the vtk-developers
mailing list