Skip to contentSkip to conversation

utils: Define __visible even if not supported by compiler

PATCH In review Phil Sutter 2 participants 2 messages Nov 21, 2019 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 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")
---
 include/utils.h | 1 +
 1 file changed, 1 insertion(+)
include/utils.h +1 -0
index 91fbebb1956fd..8af5a8e973fa8 100644
@@ -12,6 +12,7 @@
 #	define __visible	__attribute__((visibility("default")))
 #	define EXPORT_SYMBOL(x)	typeof(x) (x) __visible;
 #else
+#	define __visible
 #	define EXPORT_SYMBOL
 #endif
 
Signature · 1 line
2.24.0