Commit d8023cde authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Provide gmtime_r

parent d8c68f7f
......@@ -119,6 +119,15 @@ static inline struct tm *localtime_r (const time_t *timep, struct tm *result)
*result = *s;
return result;
}
static inline struct tm *gmtime_r (const time_t *timep, struct tm *result)
{
struct tm *s = gmtime (timep);
if (s == NULL)
return NULL;
*result = *s;
return result;
}
#endif
#ifndef HAVE_DIRENT_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment