diff options
author | Phil Sutter <phil@nwl.cc> | 2019-11-06 14:26:36 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-11-21 16:46:02 +0100 |
commit | 9e04709cb739de7f65019c84922148cfb31c104b (patch) | |
tree | b37276fb01ef8e79aac182b385fc848c4e49355b /include | |
parent | d1c4b98c733a56aadc71dbb548beb623e9e109db (diff) |
utils: Define __visible even if not supported by compiler
Since __visible is now used directly, provide a fallback empty
definition if HAVE_VISIBILITY_HIDDEN is not defined.
Fixes: 7349a70634fa0 ("Deprecate untyped data setters")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index 91fbebb..8af5a8e 100644 --- a/include/utils.h +++ b/include/utils.h @@ -12,6 +12,7 @@ # define __visible __attribute__((visibility("default"))) # define EXPORT_SYMBOL(x) typeof(x) (x) __visible; #else +# define __visible # define EXPORT_SYMBOL #endif |