Throughout, keep function definitions and declarations in sync with

newlib in terms of C99 "restrict" keyword.
This commit is contained in:
Corinna Vinschen
2013-11-25 11:38:08 +00:00
parent bd1af1cab5
commit 3073f26d6a
15 changed files with 47 additions and 30 deletions

View File

@ -1749,7 +1749,7 @@ localsub(const timezone_t sp, const time_t * const timep, const long offset,
** Re-entrant version of localtime.
*/
extern "C" struct tm *
localtime_r(const time_t *timep, struct tm *tmp)
localtime_r(const time_t *__restrict timep, struct tm *__restrict tmp)
{
tzset_guard.init ("tzset_guard")->acquire ();
tzset_unlocked();
@ -1820,7 +1820,7 @@ gmtime(const time_t *const timep)
*/
extern "C" struct tm *
gmtime_r(const time_t * const timep, struct tm *tmp)
gmtime_r(const time_t *__restrict const timep, struct tm *__restrict tmp)
{
tmp = gmtsub(NULL, timep, 0L, tmp);