diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-14 03:29:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-14 03:29:50 +0200 |
commit | e84b55978504a05c687dd636c1c526a99a34019e (patch) | |
tree | bddcfb84ab813255abe5dd9c187d234900da883c /src/internal.h | |
parent | 58cb0668dc15c78cd3af9eeaedf29386e86ecac1 (diff) |
Revert "src: Declare the define visibility attribute together"
This reverts commit 58cb0668dc15c78cd3af9eeaedf29386e86ecac1.
Prepare a new patch to keep this update consistent with libmnl.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/internal.h b/src/internal.h index 79b0752..558d267 100644 --- a/src/internal.h +++ b/src/internal.h @@ -5,9 +5,10 @@ #include <stdint.h> #include <stdbool.h> #ifdef HAVE_VISIBILITY_HIDDEN -# define __EXPORTED __attribute__((visibility("default"))) +# define __visible __attribute__((visibility("default"))) +# define EXPORT_SYMBOL(x) typeof(x) (x) __visible #else -# define __EXPORTED +# define EXPORT_SYMBOL #endif struct iphdr; |