diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-14 12:17:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-14 12:17:19 +0000 |
commit | f03b7b10ecb7fe8d0431165b7f6a59a12c2d1d27 (patch) | |
tree | a2deb77f2b70f34d016f7e40a212c14b751ec373 /newlib | |
parent | 71675a3908d8bf650dce62d174d33391dbaafd2d (diff) | |
download | cygnal-f03b7b10ecb7fe8d0431165b7f6a59a12c2d1d27.tar.gz cygnal-f03b7b10ecb7fe8d0431165b7f6a59a12c2d1d27.tar.bz2 cygnal-f03b7b10ecb7fe8d0431165b7f6a59a12c2d1d27.zip |
* libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
!_REENT_ONLY section.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 2009-03-14 Corinna Vinschen <corinna@vinschen.de> + * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of + !_REENT_ONLY section. + +2009-03-14 Corinna Vinschen <corinna@vinschen.de> + * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations to stdlib.h. * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using. 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)); |