bug-gnulib
[Top][All Lists]
Advanced

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

improve clang support (34)


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

clang has #include_next.


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

        absolute-header: Add support for clang.
        * modules/absolute-header (Makefile.am): Include '__clang__' in the
        HAVE_INCLUDE_NEXT expression.

diff --git a/modules/absolute-header b/modules/absolute-header
index 491d3d2..1866348 100644
--- a/modules/absolute-header
+++ b/modules/absolute-header
@@ -12,7 +12,7 @@ Makefile.am:
 # Use this preprocessor expression to decide whether #include_next works.
 # Do not rely on a 'configure'-time test for this, since the expression
 # might appear in an installed header, which is used by some other compiler.
-HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER)
+HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER)
 
 Include:
 




reply via email to

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