Dont use localtime_r for MSVC.
@@ -1927,7 +1927,11 @@ static void pre_init (c2m_ctx_t c2m_ctx) {
c2m_ctx->pre_ctx = c2mir_calloc (c2m_ctx, sizeof (struct pre_ctx));
no_out_p = skip_if_part_p = FALSE;
t = time (&time_loc);
+#ifdef _MSC_VER
+ tm = localtime (&t);
+#else
tm = localtime_r (&t, &tm_loc);
+#endif
if (tm == NULL) {
strcpy (date_str_repr, "\"Unknown date\"");
strcpy (time_str_repr, "\"Unknown time\"");
