bug-gnulib
[Top][All Lists]
Advanced

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

Re: Incompatibilities with clang.


From: Matt Sicker
Subject: Re: Incompatibilities with clang.
Date: Sun, 3 Nov 2013 11:30:18 -0600

http://clang.llvm.org/docs/LanguageExtensions.html#c11-static-assert

#ifndef __has_feature
#define __has_feature(x) 0
#endif
#if __has_feature(c_static_assert)
...
#endif



On 3 November 2013 01:55, Paul Eggert <address@hidden> wrote:
Matt Sicker wrote:
> For instance, clang
> supports both C and C++ static asserts, yet gnulib doesn't use them when
> compiling with clang.

How is code supposed to decide whether the current clang supports
_Static_assert?  The documentation isn't clear.



--
Matt Sicker <address@hidden>

reply via email to

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