diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2019-10-08 11:49:45 +1100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-10-08 12:19:10 +0200 |
commit | 24ba8cd8e4cebb0faeddff68498b5fdad7f1dd6b (patch) | |
tree | e3551c29b5ad1e24a85ebca386ae9d88888765a0 /src/internal.h | |
parent | ae497107eb8b44e2ad8429a0ffa971ded1fe801c (diff) |
src: Enable clang build
Modify the definition and use of EXPORT_SYMBOL as was done for libmnl in
commit 444d6dc9.
Additionally, avoid generating long (>80ch) lines when inserting
EXPORT_SYMBOL.
Finally, re-align multi-line parameter blocks with opening parenthesis.
[ I have mangled the original patch to not split the function definition and
its return value. --pablo ]
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal.h b/src/internal.h index d648bfe..d968325 100644 --- a/src/internal.h +++ b/src/internal.h @@ -5,8 +5,7 @@ #include <stdint.h> #include <stdbool.h> #ifdef HAVE_VISIBILITY_HIDDEN -# define __visible __attribute__((visibility("default"))) -# define EXPORT_SYMBOL(x) typeof(x) (x) __visible +# define EXPORT_SYMBOL __attribute__((visibility("default"))) #else # define EXPORT_SYMBOL #endif |