Pārlūkot izejas kodu

manual declaration of struct timezone, relates to #170

Stasik0 9 gadi atpakaļ
vecāks
revīzija
64a78ba943
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      src/ua_types.c

+ 6 - 0
src/ua_types.c

@@ -266,6 +266,12 @@ UA_TYPE_AS(UA_DateTime, UA_Int64)
 #define HUNDRED_NANOSEC_PER_USEC 10LL
 #define HUNDRED_NANOSEC_PER_SEC (HUNDRED_NANOSEC_PER_USEC * 1000000LL)
 
+#ifdef __MINGW32__
+struct timezone {
+  int tz_minuteswest;
+  int tz_dsttime;
+};
+#endif
 #ifdef _WIN32
 static const unsigned __int64 epoch = 116444736000000000;
 int gettimeofday(struct timeval *tp, struct timezone *tzp);