diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-23 12:42:20 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-23 12:46:34 +0700 |
commit | bc2c6ba21551f54c42047b01beeccf9daae7a03a (patch) | |
tree | d6b11811686b9b5c15925e83369352ec7152e53f /system/include/libc/stdlib.h | |
parent | f99012f271c056ddc171f6a4ec011ad31ad936cd (diff) |
Re-instate _ATTRIBUTE() usages.
These were broken because the definition of _ATTRIBUTE() from
libcxx was different, so change the libc definition and usage
to match.
Fixes issue #992.
Diffstat (limited to 'system/include/libc/stdlib.h')
-rw-r--r-- | system/include/libc/stdlib.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/include/libc/stdlib.h b/system/include/libc/stdlib.h index d8cf911b..888b6041 100644 --- a/system/include/libc/stdlib.h +++ b/system/include/libc/stdlib.h @@ -59,7 +59,7 @@ int _EXFUN(__locale_mb_cur_max,(_VOID)); #define MB_CUR_MAX __locale_mb_cur_max() -_VOID _EXFUN(abort,(_VOID)); /* _ATTRIBUTE ((noreturn))); */ +_VOID _EXFUN(abort,(_VOID) _ATTRIBUTE(noreturn)); int _EXFUN(abs,(int)); int _EXFUN(atexit,(_VOID (*__func)(_VOID))); double _EXFUN(atof,(const char *__nptr)); @@ -77,7 +77,7 @@ _PTR _EXFUN(bsearch,(const _PTR __key, int _EXFNPTR(_compar,(const _PTR, const _PTR)))); _PTR _EXFUN_NOTHROW(calloc,(size_t __nmemb, size_t __size)); div_t _EXFUN(div,(int __numer, int __denom)); -_VOID _EXFUN(exit,(int __status)); /* _ATTRIBUTE ((noreturn))); */ +_VOID _EXFUN(exit,(int __status) _ATTRIBUTE(noreturn)); _VOID _EXFUN_NOTHROW(free,(_PTR)); char * _EXFUN(getenv,(const char *__string)); char * _EXFUN(_getenv_r,(struct _reent *, const char *__string)); @@ -107,14 +107,14 @@ int _EXFUN(mkostemp,(char *, int)); int _EXFUN(mkostemps,(char *, int, int)); int _EXFUN(mkstemp,(char *)); int _EXFUN(mkstemps,(char *, int)); -char * _EXFUN(mktemp,(char *)); /* _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); */ +char * _EXFUN(mktemp,(char *) _ATTRIBUTE (__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))); #endif char * _EXFUN(_mkdtemp_r, (struct _reent *, char *)); int _EXFUN(_mkostemp_r, (struct _reent *, char *, int)); int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int)); int _EXFUN(_mkstemp_r, (struct _reent *, char *)); int _EXFUN(_mkstemps_r, (struct _reent *, char *, int)); -char * _EXFUN(_mktemp_r, (struct _reent *, char *)); /* _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); */ +char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE (__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))); #endif _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); int _EXFUN(rand,(_VOID)); @@ -144,7 +144,7 @@ long _EXFUN(a64l,(const char *__input)); char * _EXFUN(l64a,(long __input)); char * _EXFUN(_l64a_r,(struct _reent *,long __input)); int _EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg)); -_VOID _EXFUN(_Exit,(int __status)); /* _ATTRIBUTE ((noreturn))); */ +_VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE(noreturn)); int _EXFUN(putenv,(char *__string)); int _EXFUN(_putenv_r,(struct _reent *, char *__string)); _PTR _EXFUN(_reallocf_r,(struct _reent *, _PTR, size_t)); |