1 #ifndef FEATURES_H 2 #define FEATURES_H 3 4 #include "../../include/features.h" 5 6 #define weak __attribute__((__weak__)) 7 #define hidden __attribute__((__visibility__("hidden"))) 8 #ifndef weak_alias 9 #define weak_alias(old, new) \ 10 extern __typeof(old) new __attribute__((__weak__, __alias__(#old))) 11 #endif 12 #ifndef strong_alias 13 #define strong_alias(old, new) \ 14 extern __typeof(old) new __attribute__((__alias__(#old))) 15 #endif 16 #endif 17