[PATCH] math.h: Warn about an already-defined log macro

Joseph Myers joseph@codesourcery.com
Mon Sep 4 15:45:00 GMT 2017


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



More information about the Libc-alpha mailing list