LibC: Add weak_alias header that defines a weak_alias macro
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user