clang has #include_next.

2020-08-16  Bruno Haible  <br...@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