Add __strict_weak_alias(), the type-safe alternative to __weak_alias().
This commit is contained in:
parent
64916d590e
commit
84360ec112
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdefs.h,v 1.86 2011/06/23 12:16:03 nonaka Exp $ */
|
||||
/* $NetBSD: cdefs.h,v 1.87 2011/08/16 23:30:24 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -63,6 +63,14 @@
|
|||
#include <sys/cdefs_aout.h>
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define __strict_weak_alias(alias,sym) \
|
||||
__unused static __typeof__(alias) *__weak_alias_##alias = &sym; \
|
||||
__weak_alias(alias,sym)
|
||||
#else
|
||||
#define __strict_weak_alias(alias,sym) __weak_alias(alias,sym)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Optional marker for size-optimised MD calling convention.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue