Commit a4fa4480 authored by David Gobbi's avatar David Gobbi

Remove the toupper macro defined by Python.h.

The Python pyport.h header defines macros for toupper and other
ctype functions when compiled with __APPLE__ defined.  These macro
definitions are problematic for C++ in general, and cause compile
errors with modern compilers.
parent 6d9b42b0
......@@ -91,4 +91,15 @@ they are system headers. Do NOT add any #undef lines here. */
# undef VTK_PYTHON_UNDEF_DEBUG
#endif
/* undo some macro defs in pyport.h */
#if defined(_PY_PORT_CTYPE_UTF8_ISSUE) && defined(__cplusplus)
#undef isalnum
#undef isalpha
#undef islower
#undef isspace
#undef isupper
#undef tolower
#undef toupper
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment