]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
MacOS: An attempt to appease compiler picky about attribute placement
authorMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:30:22 +0000 (23:30 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:30:22 +0000 (23:30 +0100)
lib/internal.h

index 00ac401ec5a3e07d3165b391d59b7ec9d01dd0c1..4c5573945ce59ac8ef0b9d40d75e128e03f59020 100644 (file)
@@ -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