From f03b7b10ecb7fe8d0431165b7f6a59a12c2d1d27 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 14 Mar 2009 12:17:19 +0000 Subject: [PATCH] * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of !_REENT_ONLY section. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/stdlib.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2c45c6f82..f5bbe69af 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-03-14 Corinna Vinschen + + * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of + !_REENT_ONLY section. + 2009-03-14 Corinna Vinschen * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index a6a6e5083..e14186586 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -98,10 +98,10 @@ size_t _EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, _mb #ifndef __STRICT_ANSI__ #ifndef _REENT_ONLY int _EXFUN(mkstemp,(char *)); -int _EXFUN(_mkstemp_r, (struct _reent *, char *)); char * _EXFUN(mktemp,(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 +int _EXFUN(_mkstemp_r, (struct _reent *, char *)); +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));