This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] math.h: Warn about an already-defined log macro
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 4 Sep 2017 15:44:50 +0000
- Subject: Re: [PATCH] math.h: Warn about an already-defined log macro
- Authentication-results: sourceware.org; auth=none
- References: <20170904090959.276DE439942E3@oldenburg.str.redhat.com>
On Mon, 4 Sep 2017, Florian Weimer wrote:
> This is a common programming error, and the cause of the problem is not
> always obvious.
>
> <tgmath.h> defines a log macro, but it includes <math.h> before that, so
> that is compatible with the warning.
>
> 2017-09-04 Florian Weimer <fweimer@redhat.com>
>
> * math/math.h: Issue warning if log is defined.
OK.
--
Joseph S. Myers
joseph@codesourcery.com