提交 5e2f808d authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-5527 fix compiler error windows

(cherry picked from commit a52a604f)
上级 74740cca
......@@ -85,6 +85,12 @@ void su_set_time_func(su_time_func_t func) {
*/
void su_time(su_time_t *tv)
{
#if HAVE_FILETIME
union {
FILETIME ft[1];
ULARGE_INTEGER ull[1];
} date;
#endif
su_time_t ltv = {0,0};
if (custom_time_func) {
......@@ -105,10 +111,6 @@ void su_time(su_time_t *tv)
ltv.tv_sec += NTP_EPOCH;
#elif HAVE_FILETIME
union {
FILETIME ft[1];
ULARGE_INTEGER ull[1];
} date;
GetSystemTimeAsFileTime(date.ft);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论