LibC: Add weak_alias header that defines a weak_alias macro
This commit is contained in:
parent
d189f00f38
commit
4b2c303873
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef _SYS_WEAK_ALIAS
|
||||||
|
#define _SYS_WEAK_ALIAS 1
|
||||||
|
|
||||||
|
#define weak_alias(name, aliasname) _weak_alias (name, aliasname)
|
||||||
|
#define _weak_alias(name, aliasname) extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)))
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue