From 5b901ee0315658035661332d6d85d8bfd8816b6b Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 14 Sep 2020 04:45:02 -0400 Subject: [PATCH] Fix compilation for compilers not supporting __has_attribute --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index b2b85da..e83d441 100644 --- a/meson.build +++ b/meson.build @@ -95,8 +95,12 @@ endif # it is safe for this check to fail and for us to fallback to the old _asm_ # method for symver code = ''' -#if defined __has_attribute && !__has_attribute (symver) -#error symver attribute not supported +#if defined __has_attribute +# if !__has_attribute (symver) +# error symver attribute not supported +# endif +#else +#error __has_attribute not defined, assume we do not have symver #endif int main(void) { -- 2.30.2