bug-gnulib
[Top][All Lists]
Advanced

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

Re: improve clang support (34)


From: Paul Smith
Subject: Re: improve clang support (34)
Date: Sun, 16 Aug 2020 16:08:53 -0400
User-agent: Evolution 3.36.3-0ubuntu1

On Sun, 2020-08-16 at 18:55 +0200, Bruno Haible wrote:
> +HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER)

Just wondering, are these changes for the sake of documentation, or are
they really needed (do you see problems without them)?

In my experience with clang, it always defines both __clang__ and
__GNUC__ so changes like this don't change behavior.

I definitely have no objection to adding them; I'm curious if there's
something going on here I'm not familiar with.

  $ clang -x c /dev/null -dM -E | grep -i gnu
  #define __GNUC_MINOR__ 2
  #define __GNUC_PATCHLEVEL__ 1
  #define __GNUC_STDC_INLINE__ 1
  #define __GNUC__ 4
  #define __gnu_linux__ 1





reply via email to

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