We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c9e45a + 79727e5 commit 83543e9Copy full SHA for 83543e9
1 file changed
app/consapp/convbin/convbin.c
@@ -403,7 +403,11 @@ static int get_filetime(const char *file, gtime_t *time)
403
struct stat st;
404
if (!stat(path, &st)) {
405
struct tm tm;
406
+#ifdef _MSC_VER
407
+ if (gmtime_s(&tm, &st.st_mtime) != 0) {
408
+#else
409
if (gmtime_r(&st.st_mtime, &tm)) {
410
+#endif
411
double ep[6];
412
ep[0] = tm.tm_year + 1900;
413
ep[1] = tm.tm_mon + 1;
0 commit comments