mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
20 lines
287 B
C
20 lines
287 B
C
|
#include "libcompat.h"
|
||
|
|
||
|
#if !defined(localtime_r)
|
||
|
|
||
|
struct tm *
|
||
|
localtime_r (const time_t * clock, struct tm *result)
|
||
|
{
|
||
|
struct tm *now = localtime (clock);
|
||
|
|
||
|
if (now == NULL) {
|
||
|
return NULL;
|
||
|
} else {
|
||
|
*result = *now;
|
||
|
}
|
||
|
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
#endif /* !defined(localtime_r) */
|