mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
get rid of more __MINGW32__ ifdefs
This commit is contained in:
1 parent
fd8e877591
commit
f11674b2d6
7 files changed
+4
-41
No files matched your search
@@ -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