aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--math/math.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ef4a6ed..a9fb242 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-09-04 Florian Weimer <fweimer@redhat.com>
+
+ * math/math.h: Issue warning if log is defined.
+
2017-09-04 Joseph Myers <joseph@codesourcery.com>
* scripts/build-many-glibcs.py (Context.checkout): Default Linux
diff --git a/math/math.h b/math/math.h
index 547b36d..6c2ad97 100644
--- a/math/math.h
+++ b/math/math.h
@@ -26,6 +26,11 @@
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
#include <bits/libc-header-start.h>
+#if defined log && defined __GNUC__
+# warning A macro called log was already defined when <math.h> was included.
+# warning This will cause compilation problems.
+#endif
+
__BEGIN_DECLS
/* Get definitions of __intmax_t and __uintmax_t. */