compat BUGFIX regression in win timegm support
diff --git a/compat/compat.h.in b/compat/compat.h.in
index 49468ab..d1e160c 100644
--- a/compat/compat.h.in
+++ b/compat/compat.h.in
@@ -191,8 +191,10 @@
 #endif
 
 #ifndef HAVE_TIMEGM
-# if defined (_WIN32)
+# ifdef _WIN32
 #  define timegm _mkgmtime
+#  define HAVE_TIMEGM
+
 # else
 time_t timegm(struct tm *tm);
 # endif
@@ -202,7 +204,7 @@
 char *strptime(const char *s, const char *format, struct tm *tm);
 #endif
 
-#if defined (_WIN32)
+#ifdef _WIN32
 # define strtok_r strtok_s
 #endif