diff options
| author | Alejandro Colomar <alx@kernel.org> | 2022-11-12 00:41:15 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@nginx.com> | 2022-11-16 13:09:18 +0100 |
| commit | d0f5370f343a7786a1ab5d0325aa90518695662c (patch) | |
| tree | 01d0d1b47f25f73efc716e10b180d8469cb00d24 | |
| parent | ba919b7350eb79a08192c01b3db63973003da85c (diff) | |
| download | unit-d0f5370f343a7786a1ab5d0325aa90518695662c.tar.gz unit-d0f5370f343a7786a1ab5d0325aa90518695662c.tar.bz2 | |
Added NXT_HAVE_C11_GENERIC.
Test if _Generic(3) is available. Although we require GNU C11, some
old compilers, like the one in CentOS 7 still don't have full support
for C11, and _Generic(3) is not available there.
Acked-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
| -rw-r--r-- | auto/clang | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -6,6 +6,17 @@ # C language features. +nxt_feature="C11 _Generic()" +nxt_feature_name=NXT_HAVE_C11_GENERIC +nxt_feature_run=no +nxt_feature_incs= +nxt_feature_libs= +nxt_feature_test="int main(void) { + return _Generic(1, int: 0); + }" +. auto/feature + + nxt_feature="C99 variadic macro" nxt_feature_name=NXT_HAVE_C99_VARIADIC_MACRO nxt_feature_run=yes |
