From 459502e48ccb6607e531112e7ae89f62b75023c8 Mon Sep 17 00:00:00 2001 From: darkf Date: Fri, 28 Nov 2014 21:38:20 -0800 Subject: Fix MinGW build --- src/common/platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/platform.h') diff --git a/src/common/platform.h b/src/common/platform.h index d9f09543..7d123caa 100644 --- a/src/common/platform.h +++ b/src/common/platform.h @@ -71,14 +71,18 @@ #include +#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 -- cgit v1.2.3