From: Tom Callaway Date: Mon, 14 Sep 2020 08:45:02 +0000 (-0400) Subject: Fix compilation for compilers not supporting __has_attribute X-Git-Tag: fuse-3.10.0~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5b901ee0315658035661332d6d85d8bfd8816b6b;p=qemu-gpiodev%2Flibfuse.git Fix compilation for compilers not supporting __has_attribute --- 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) {