bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

improve clang support (41)


From: Bruno Haible
Subject: improve clang support (41)
Date: Sun, 16 Aug 2020 19:11:02 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

Unlike MSVC, clang groks the expression 0.0L/0.0L.


2020-08-16  Bruno Haible  <bruno@clisp.org>

        log2l: Disable MSVC workaround on clang.
        * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.

diff --git a/lib/log2l.c b/lib/log2l.c
index 8634026..ad47379 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]