diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-10 12:58:04 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-14 01:38:48 +0200 |
commit | 58cb0668dc15c78cd3af9eeaedf29386e86ecac1 (patch) | |
tree | 46d7352ebbbdf7c41a019248bfc94c788849fc95 /src/internal.h | |
parent | b39cac7afe54e08bb5d8af6e082de9b4f3a273ec (diff) |
src: Declare the define visibility attribute together
clang ignores the visibility attribute if its not defined before the
definition. As a result these symbols become hidden and consumers of
this library fail to link due to these missing symbols.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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, 2 insertions, 3 deletions
diff --git a/src/internal.h b/src/internal.h index 558d267..79b0752 100644 --- a/src/internal.h +++ b/src/internal.h @@ -5,10 +5,9 @@ #include <stdint.h> #include <stdbool.h> #ifdef HAVE_VISIBILITY_HIDDEN -# define __visible __attribute__((visibility("default"))) -# define EXPORT_SYMBOL(x) typeof(x) (x) __visible +# define __EXPORTED __attribute__((visibility("default"))) #else -# define EXPORT_SYMBOL +# define __EXPORTED #endif struct iphdr; |