about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2020-01-08 14:28:23 -0500
committerZack Weinberg <zackw@panix.com>2020-01-08 14:28:23 -0500
commit4988e26b94a9397d934e43f9116b0d33b3a454b2 (patch)
treeddbf76be18935eb71b5e6aa0732816aa922ea03b /sysdeps
parent135540285cb44f820dac41c2b95531db33658f9f (diff)
downloadglibc-4988e26b94a9397d934e43f9116b0d33b3a454b2.tar.gz
glibc-4988e26b94a9397d934e43f9116b0d33b3a454b2.tar.xz
glibc-4988e26b94a9397d934e43f9116b0d33b3a454b2.zip
MIPS: Fix circular definition of __LDBL_MANT_DIG__ in ieee754.h
In commit aa706e13f4bfdf32a27c498902edf4f6006e433e,
sysdeps/mips/ieee754/ieee754.h was changed to use GCC’s predefined
macro __LDBL_MANT_DIG__, instead of including <float.h> and using
LDBL_MANT_DIG (and therefore polluting the user namespace with all of
the macros defined in float.h).  In order to support compilers that
don’t provide __LDBL_MANT_DIG__, there is a fallback #if block which
was supposed to include <float.h> and then define __LDBL_MANT_DIG__ to
LDBL_MANT_DIG.  However, at some point during the development of the
patch, a typo was introduced, causing the fallback block to define
__LDBL_MANT_DIG__ to expand to __LDBL_MANT_DIG__.

Correct this typo.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mips/ieee754/ieee754.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mips/ieee754/ieee754.h b/sysdeps/mips/ieee754/ieee754.h
index 75059f733b..62f17586f1 100644
--- a/sysdeps/mips/ieee754/ieee754.h
+++ b/sysdeps/mips/ieee754/ieee754.h
@@ -24,7 +24,7 @@
 
 #ifndef __LDBL_MANT_DIG__
 # include <float.h>
-# define __LDBL_MANT_DIG__ __LDBL_MANT_DIG__
+# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
 #endif
 
 __BEGIN_DECLS