X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmeson.build;h=af2410d06d7ebc32e94e8cd8425d3fe64cbbc6be;hb=6075fb8c185d0461070a9f16288e9d3673708735;hp=484b514a0c47c7acb1458c0b4e804ab4ae65e908;hpb=244002d83466a85ac4fbb5327e26a60fe44168fd;p=tinc diff --git a/src/meson.build b/src/meson.build index 484b514a..af2410d0 100644 --- a/src/meson.build +++ b/src/meson.build @@ -11,10 +11,10 @@ cdata.set_quoted('SBINDIR', dir_sbin) cdata.set('HAVE_' + os_name.to_upper(), 1) -foreach attr : ['malloc', 'nonnull', 'warn_unused_result', 'packed'] +foreach attr : ['malloc', 'nonnull', 'warn_unused_result', 'packed', 'format'] if cc.has_function_attribute(attr) cdata.set('HAVE_ATTR_' + attr.to_upper(), 1, - description: '__attribute__(@0@)'.format(attr)) + description: '__attribute__((__@0@__))'.format(attr)) endif endforeach