[vtk-developers] Python-related dashboard build errors with new clang

David Gobbi david.gobbi at gmail.com
Thu Nov 12 12:17:05 EST 2015


On Thu, Nov 12, 2015 at 10:04 AM, Ben Boeckel <ben.boeckel at kitware.com>
wrote:

> 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


The python devs were nice enough to let us know exactly when they
do the #define:

// undo the "#define toupper" in pyport.h
#ifdef _PY_PORT_CTYPE_UTF8_ISSUE
#undef toupper
#endif

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20151112/78dc69f0/attachment.html>


More information about the vtk-developers mailing list