Merge pull request #3084 from Ashutosh0x:fix/mingw-stat-localtime

PiperOrigin-RevId: 880906196
Change-Id: I98027e80e9882620cb184766c14110478178ce53
This commit is contained in:
Copybara-Service
2026-03-09 09:54:10 -07:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void mju_writeLog(const char* type, const char* msg) {
#if defined(_POSIX_C_SOURCE) || defined(__APPLE__) || defined(__STDC_VERSION_TIME_H__) || defined(__EMSCRIPTEN__)
localtime_r(&rawtime, &timeinfo);
#elif _MSC_VER
#elif defined(_WIN32)
localtime_s(&timeinfo, &rawtime);
#elif __STDC_LIB_EXT1__
localtime_s(&rawtime, &timeinfo);
+1 -1
View File
@@ -15,7 +15,7 @@
#include "user/user_vfs.h"
#include <sys/stat.h>
#ifdef _WIN32
#if defined(_WIN32) && !defined(__MINGW32__)
#define stat _stat
#endif