From 0b6711f860444533e81ad64157c9f162980dd77b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 19:10:32 +0200 Subject: [PATCH] log2l: Disable MSVC workaround on clang. * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L. --- ChangeLog | 5 +++++ lib/log2l.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a6c05695b..dc27e2294a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-08-16 Bruno Haible + + log2l: Disable MSVC workaround on clang. + * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L. + 2020-08-16 Bruno Haible argp: Emit a warning also with clang. diff --git a/lib/log2l.c b/lib/log2l.c index 8634026328..ad47379e6f 100644 --- a/lib/log2l.c +++ b/lib/log2l.c @@ -52,7 +52,7 @@ log2l (long double x) else { /* Return NaN. */ -#if defined _MSC_VER || (defined __sgi && !defined __GNUC__) +#if (defined _MSC_VER && !defined __clang__) || (defined __sgi && !defined __GNUC__) static long double zero; return zero / zero; #else -- 2.39.5