diff options
Diffstat (limited to 'mesonbuild/compilers/c_function_attributes.py')
| -rw-r--r-- | mesonbuild/compilers/c_function_attributes.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py index 4c8aa7054..e425dbfa2 100644 --- a/mesonbuild/compilers/c_function_attributes.py +++ b/mesonbuild/compilers/c_function_attributes.py @@ -30,6 +30,13 @@ C_FUNC_ATTRIBUTES = { 'int foo(void) __attribute__((constructor));', 'constructor_priority': 'int foo( void ) __attribute__((__constructor__(65535/2)));', + 'counted_by': + ''' + struct foo { + unsigned int count; + char bar[] __attribute__((counted_by(count))); + }; + ''', 'deprecated': 'int foo(void) __attribute__((deprecated("")));', 'destructor': |
