From 58cb0668dc15c78cd3af9eeaedf29386e86ecac1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 10 Apr 2017 12:58:04 -0700 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/internal.h') 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 #include #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; -- cgit v1.2.3