mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
18 lines
276 B
C
18 lines
276 B
C
|
#include "lib_acl.h"
|
||
|
#include <string.h>
|
||
|
#include "sys_patch.h"
|
||
|
|
||
|
#ifdef ACL_MS_WINDOWS
|
||
|
|
||
|
struct tm *localtime_r(const time_t *timep, struct tm *result)
|
||
|
{
|
||
|
struct tm *tmp;
|
||
|
tmp = localtime(timep);
|
||
|
if (result)
|
||
|
memcpy(result, tmp, sizeof(struct tm));
|
||
|
return (tmp);
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|