summaryrefslogtreecommitdiff
path: root/libgcompat/alias.h
blob: bb9969051ba34b2a66caf778ea58f398428f6437 (plain) (blame)
1
2
3
4
5
6
7
8
9
#ifndef _ALIAS_H_
#define _ALIAS_H_

#define alias(old, new)                                                        \
	extern __typeof(old) new __attribute__((__alias__(#old)))
#define weak_alias(old, new)                                                   \
	extern __typeof(old) new __attribute__((weak, __alias__(#old)))

#endif /* _ALIAS_H_ */