This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 06/13] Installed header hygiene (BZ#20366): Macros used in #if without checking whether they are defined.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: Zack Weinberg <zackw at panix dot com>, <libc-alpha at sourceware dot org>
- Date: Wed, 21 Sep 2016 18:05:05 +0000
- Subject: Re: [PATCH 06/13] Installed header hygiene (BZ#20366): Macros used in #if without checking whether they are defined.
- Authentication-results: sourceware.org; auth=none
- References: <20160830011645.25769-1-zackw@panix.com> <20160830011645.25769-2-zackw@panix.com> <20160830011645.25769-3-zackw@panix.com> <20160830011645.25769-4-zackw@panix.com> <20160830011645.25769-5-zackw@panix.com> <20160830011645.25769-6-zackw@panix.com> <20160830011645.25769-7-zackw@panix.com> <670d128e-b21a-b26c-8c5f-bc64bf68527e@redhat.com>
On Wed, 21 Sep 2016, Carlos O'Donell wrote:
> At a high level I would expect _LIBC to always be defined as either 0 or 1.
_LIBC is effectively with external code, because it's used (with #if) in
code shared by gnulib. So we can't change its semantics like that;
defining to 0 with installed glibc would break building gnulib.
--
Joseph S. Myers
joseph@codesourcery.com