[libcxx] r265358 - Put back the undefs that Richard removed. Boost won't build w/o these; specifically the file 'bytes_methods.h' in Apple's python framework defines these.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 4 16:22:02 PDT 2016


On Mon, Apr 4, 2016 at 3:49 PM, Marshall Clow via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: marshall
> Date: Mon Apr  4 17:49:20 2016
> New Revision: 265358
>
> URL: http://llvm.org/viewvc/llvm-project?rev=265358&view=rev
> Log:
> Put back the undefs that Richard removed. Boost won't build w/o these;
> specifically the file 'bytes_methods.h' in Apple's python framework defines
> these.
>

Huh? These are #undef'd in libc++'s <ctype.h>, which is included at the top
of this file. Problems here sound like the compiler's include path is
broken (it's finding the libc <ctype.h> before the libc++ one).


> Modified:
>     libcxx/trunk/include/cctype
>
> Modified: libcxx/trunk/include/cctype
> URL:
> http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/cctype?rev=265358&r1=265357&r2=265358&view=diff
>
> ==============================================================================
> --- libcxx/trunk/include/cctype (original)
> +++ libcxx/trunk/include/cctype Mon Apr  4 17:49:20 2016
> @@ -44,6 +44,63 @@ int toupper(int c);
>
>  _LIBCPP_BEGIN_NAMESPACE_STD
>
> +#ifdef isalnum
> +#undef isalnum
> +#endif
> +
> +#ifdef isalpha
> +#undef isalpha
> +#endif
> +
> +#ifdef isblank
> +#undef isblank
> +#endif
> +
> +#ifdef iscntrl
> +#undef iscntrl
> +#endif
> +
> +#ifdef isdigit
> +#undef isdigit
> +#endif
> +
> +#ifdef isgraph
> +#undef isgraph
> +#endif
> +
> +#ifdef islower
> +#undef islower
> +#endif
> +
> +#ifdef isprint
> +#undef isprint
> +#endif
> +
> +#ifdef ispunct
> +#undef ispunct
> +#endif
> +
> +#ifdef isspace
> +#undef isspace
> +#endif
> +
> +#ifdef isupper
> +#undef isupper
> +#endif
> +
> +#ifdef isxdigit
> +#undef isxdigit
> +#endif
> +
> +#ifdef tolower
> +#undef tolower
> +#endif
> +
> +#ifdef toupper
> +#undef toupper
> +#endif
> +
> +
>  using ::isalnum;
>  using ::isalpha;
>  using ::isblank;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160404/87e68002/attachment.html>


More information about the cfe-commits mailing list