From a52a604fbb561dbb604676b1a17888bd74625101 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 28 Jun 2013 11:05:27 -0500 Subject: [PATCH] FS-5527 fix compiler error windows --- libs/sofia-sip/libsofia-sip-ua/su/su_time0.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c b/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c index 7267213156..cae14a35a8 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c @@ -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);