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 <[email protected]> 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 <[email protected]>
