diff options
author | darkf <lw9k123@gmail.com> | 2014-11-28 21:38:20 -0800 |
---|---|---|
committer | darkf <lw9k123@gmail.com> | 2014-11-28 21:38:20 -0800 |
commit | 459502e48ccb6607e531112e7ae89f62b75023c8 (patch) | |
tree | 491c2a24f1496d4abab0d3339e559b9facc74265 /src/common/platform.h | |
parent | 2a4b698f8e89f412e725b47fac77cedc5645bc37 (diff) |
Fix MinGW build
Diffstat (limited to 'src/common/platform.h')
-rw-r--r-- | src/common/platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/platform.h b/src/common/platform.h index d9f095433..7d123caa0 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 |