summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 3 insertions, 7 deletions
diff --git a/meson.build b/meson.build
index 1256094fa57..d7c5193d4ce 100644
--- a/meson.build
+++ b/meson.build
@@ -1880,20 +1880,16 @@ if cc.compiles('''
endif
-# Check if the C compiler understands _Static_assert(),
-# and define HAVE__STATIC_ASSERT if so.
-#
-# We actually check the syntax ({ _Static_assert(...) }), because we need
-# gcc-style compound expressions to be able to wrap the thing into macros.
+# Check if the C compiler supports GCC-style statement expressions.
if cc.compiles('''
int main(int arg, char **argv)
{
({ _Static_assert(1, "foo"); });
}
''',
- name: '_Static_assert',
+ name: 'statement expressions',
args: test_c_args)
- cdata.set('HAVE__STATIC_ASSERT', 1)
+ cdata.set('HAVE_STATEMENT_EXPRESSIONS', 1)
endif