Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-11-25 15:38:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-11-25 15:38:08 +0400
commit3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (patch)
treee194898fb1b64aa0997016e8359861ef48ede14e /winsup/cygwin/localtime.cc
parentbd1af1cab5cc78a5d97bdd9ba2e9e934fc80688e (diff)
Throughout, keep function definitions and declarations in sync with
newlib in terms of C99 "restrict" keyword.
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index 19eef6759..a5307101e 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -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);