<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 12, 2015 at 10:04 AM, Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Thu, Nov 12, 2015 at 09:50:25 -0700, David Gobbi wrote:<br>
> I haven't seen it (still using Xcode 6.1), but I can guess at a fix.<br>
><br>
> The VTK classes never include Python.h directly, they always<br>
> include "vtkPython.h" which already has a bunch of fixes for<br>
> issues like this one.<br>
><br>
> To fix in vtkPython.h, an "#undef toupper" will have to be added<br>
> after "#include <Python.h>" (with checks for the clang version).<br>
<br>
</span>Why not just:<br>
<br>
    #ifdef toupper<br>
    #undef toupper<br>
    #endif</blockquote><div><br></div><div>The python devs were nice enough to let us know exactly when they</div><div>do the #define:</div><div><br></div><div>// undo the "#define toupper" in pyport.h</div>







<div>#ifdef _PY_PORT_CTYPE_UTF8_ISSUE</div><div>#undef toupper</div><div>#endif</div><div><br></div><div> - David</div><div><br></div></div></div></div>