Fix MinGW build

This commit is contained in:
darkf 2014-11-28 21:38:20 -08:00
parent 2a4b698f8e
commit 459502e48c
9 changed files with 42 additions and 22 deletions

View file

@ -71,14 +71,18 @@
#include <time.h>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#define EMU_FASTCALL __fastcall
#ifdef _MSVC_VER
inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
if (localtime_s(result, clock) == 0)
return result;
return NULL;
}
#endif
#else