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 -8
View File
@@ -17,13 +17,6 @@
#include "ppsspp_config.h"
#ifdef __MINGW32__
#include <unistd.h>
#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
#endif
#endif
#include <algorithm>
#include <ctime>
#include <limits>
@@ -741,7 +734,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