features.h (500B)
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 /* tcc-build: tcc silently ignores __attribute__((alias(...))), leaving 9 every weak_alias target undefined. Emit the alias as raw assembly 10 directives, plus a plain extern decl so callers see a prototype. */ 11 #define weak_alias(old, new) \ 12 extern __typeof(old) new; \ 13 __asm__(".weak " #new "\n.set " #new "," #old) 14 15 #endif