From: Martin Mares Date: Sat, 17 Feb 2024 22:30:22 +0000 (+0100) Subject: MacOS: An attempt to appease compiler picky about attribute placement X-Git-Tag: v3.11.0~62 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e5d1d2dbb64cafd33f9b012b7959b61319dcd250;p=pciutils.git MacOS: An attempt to appease compiler picky about attribute placement --- diff --git a/lib/internal.h b/lib/internal.h index 00ac401..4c55739 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -17,7 +17,7 @@ // optimizations is happy to optimize them away, leading to linker failures. #define VERSIONED_ABI __attribute__((used)) PCI_ABI #ifdef __APPLE__ -#define STATIC_ALIAS(_decl, _for) _decl VERSIONED_ABI { return _for; } +#define STATIC_ALIAS(_decl, _for) VERSIONED_ABI _decl { return _for; } #define DEFINE_ALIAS(_decl, _for) #define SYMBOL_VERSION(_int, _ext) #else