aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/printf-parsewc.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-15 09:56:34 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 12:44:42 +0800
commitbdc7f4b4e25f49b4e25578d98d58b113d0e961f1 (patch)
treef47e1799aaea3e0f20fe5d81c8c6d98d63f0c3f8 /stdio-common/printf-parsewc.c
parent6d9d7865d029e94d1aee24c609f4d222d0620fff (diff)
downloadglibc-bdc7f4b4e25f49b4e25578d98d58b113d0e961f1.zip
glibc-bdc7f4b4e25f49b4e25578d98d58b113d0e961f1.tar.gz
glibc-bdc7f4b4e25f49b4e25578d98d58b113d0e961f1.tar.bz2
Don't redefine INFINITY nor NAN
Since math/math.h isn't a system header, clang issues errors: In file included from test-flt-eval-method.c:20: In file included from ../include/math.h:7: ../math/math.h:91:11: error: 'INFINITY' macro redefined [-Werror,-Wmacro-redefined] 91 | # define INFINITY (__builtin_inff ()) | ^ /usr/bin/../lib/clang/19/include/float.h:173:11: note: previous definition is here 173 | # define INFINITY (__builtin_inff()) | ^ In file included from test-flt-eval-method.c:20: In file included from ../include/math.h:7: ../math/math.h:98:11: error: 'NAN' macro redefined [-Werror,-Wmacro-redefined] 98 | # define NAN (__builtin_nanf ("")) | ^ /usr/bin/../lib/clang/19/include/float.h:174:11: note: previous definition is here 174 | # define NAN (__builtin_nanf("")) Don't define INFINITY nor NAN if they are defined. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'stdio-common/printf-parsewc.c')
0 files changed, 0 insertions, 0 deletions