get rid of more __MINGW32__ ifdefs

This commit is contained in:
oltolm
2025-01-19 10:33:22 +01:00
parent fd8e877591
commit f11674b2d6
7 changed files with 4 additions and 41 deletions
+1 -7
View File
@@ -16,12 +16,6 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#ifdef __MINGW32__
#include <unistd.h>
#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
#endif
#endif
#include <ctime>
#include "Common/File/FileUtil.h"
@@ -656,7 +650,7 @@ static void tmFromFiletime(tm &dest, const FILETIME &src)
u64 from_1970_us = from_1601_us - FILETIME_FROM_UNIX_EPOCH_US;
time_t t = (time_t) (from_1970_us / 1000000UL);
localtime_r(&t, &dest);
localtime_s(&dest, &t);
}
#endif