LibC: Add weak_alias header that defines a weak_alias macro

This commit is contained in:
Bananymous 2025-01-14 18:33:57 +02:00
parent d189f00f38
commit 4b2c303873
1 changed files with 7 additions and 0 deletions

View File

@ -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