aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/platform.h
diff options
context:
space:
mode:
authorGravatar darkf <lw9k123@gmail.com>2014-11-28 21:38:20 -0800
committerGravatar darkf <lw9k123@gmail.com>2014-11-28 21:38:20 -0800
commit459502e48ccb6607e531112e7ae89f62b75023c8 (patch)
tree491c2a24f1496d4abab0d3339e559b9facc74265 /src/common/platform.h
parent2a4b698f8e89f412e725b47fac77cedc5645bc37 (diff)
Fix MinGW build
Diffstat (limited to 'src/common/platform.h')
-rw-r--r--src/common/platform.h4
1 files changed, 4 insertions, 0 deletions
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 <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