diff options
author | Martin Mares <mj@ucw.cz> | 2024-02-17 23:30:22 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2024-02-17 23:30:22 +0100 |
commit | e5d1d2dbb64cafd33f9b012b7959b61319dcd250 (patch) | |
tree | 0a83b3d167f3c0067d492306a53914115f439749 | |
parent | 26a5aaaa945e37a4fd1d05803cdade82b9f9a9e3 (diff) | |
download | pciutils-e5d1d2dbb64cafd33f9b012b7959b61319dcd250.tar.gz |
MacOS: An attempt to appease compiler picky about attribute placement
-rw-r--r-- | lib/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |