mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 11:57:56 -05:00
added localtime_r for use on windows
This commit is contained in:
@ -70,9 +70,17 @@
|
||||
|
||||
#if EMU_PLATFORM == PLATFORM_WINDOWS
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#define NOMINMAX
|
||||
#define EMU_FASTCALL __fastcall
|
||||
|
||||
inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
|
||||
if (localtime_s(result, clock) == 0)
|
||||
return result;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define EMU_FASTCALL __attribute__((fastcall))
|
||||
|
Reference in New Issue
Block a user