From 8273b2112ff066756d80c8ba1622aa14574fc5d3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 20 Nov 2013 09:46:39 +0000 Subject: * libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__. --- newlib/ChangeLog | 6 +++++- newlib/libc/include/stdlib.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 0a8d836bc..b740c8d30 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,4 +1,8 @@ -3013-11-19 Jennifer Averett +2013-11-20 Corinna Vinschen + + * libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__. + +2013-11-19 Jennifer Averett * libc/sys/rtems/sys/cpuset.h: New file. diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 9433af4ce..3b421dd0c 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -118,12 +118,12 @@ 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")))); #endif -char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path)); _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar)); int _EXFUN(rand,(_VOID)); _PTR _EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size)); #ifndef __STRICT_ANSI__ _PTR _EXFUN(reallocf,(_PTR __r, size_t __size)); +char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path)); #endif _VOID _EXFUN(srand,(unsigned __seed)); double _EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR)); -- cgit v1.2.3