]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5527 fix compiler error windows
authorJeff Lenk <jeff@jefflenk.com>
Fri, 28 Jun 2013 16:05:27 +0000 (11:05 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 28 Jun 2013 16:05:27 +0000 (11:05 -0500)
libs/sofia-sip/libsofia-sip-ua/su/su_time0.c

index 7267213156698ac5545d38fb5b3d5e2c383d01d5..cae14a35a81f62f8382c64e60473681b04a5f41d 100644 (file)
@@ -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);