diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/sys/cdefs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index e89776c2a7..2271e10fdc 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -159,8 +159,13 @@ #if defined __GNUC__ && __GNUC__ >= 2 # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias)) -# define __REDIRECT_NTH(name, proto, alias) \ +# ifdef __cplusplus +# define __REDIRECT_NTH(name, proto, alias) \ + name proto __THROW __asm__ (__ASMNAME (#alias)) +# else +# define __REDIRECT_NTH(name, proto, alias) \ name proto __asm__ (__ASMNAME (#alias)) __THROW +# endif # define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname) # define __ASMNAME2(prefix, cname) __STRING (prefix) cname |