Port: Add timegm compat for mingw
[babeltrace.git] / include / babeltrace / compat / utc-internal.h
index fd41f620091131dc53b4b9a50cd604b10ddc8104..d78a1885203764f9830dca11b98eccbfb5d0a173 100644 (file)
@@ -34,6 +34,14 @@ time_t bt_timegm(struct tm *tm)
        return timegm(tm);
 }
 
+#elif defined(__MINGW32__)
+
+static inline
+time_t bt_timegm(struct tm *tm)
+{
+       return _mkgmtime(tm);
+}
+
 #else
 
 #include <string.h>
This page took 0.024462 seconds and 4 git commands to generate.