mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-23 15:24:49 +02:00
get rid of more __MINGW32__ ifdefs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user