diff options
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 @@ | |||
| 71 | 71 | ||
| 72 | #include <time.h> | 72 | #include <time.h> |
| 73 | 73 | ||
| 74 | #ifndef NOMINMAX | ||
| 74 | #define NOMINMAX | 75 | #define NOMINMAX |
| 76 | #endif | ||
| 75 | #define EMU_FASTCALL __fastcall | 77 | #define EMU_FASTCALL __fastcall |
| 76 | 78 | ||
| 79 | #ifdef _MSVC_VER | ||
| 77 | inline struct tm* localtime_r(const time_t *clock, struct tm *result) { | 80 | inline struct tm* localtime_r(const time_t *clock, struct tm *result) { |
| 78 | if (localtime_s(result, clock) == 0) | 81 | if (localtime_s(result, clock) == 0) |
| 79 | return result; | 82 | return result; |
| 80 | return NULL; | 83 | return NULL; |
| 81 | } | 84 | } |
| 85 | #endif | ||
| 82 | 86 | ||
| 83 | #else | 87 | #else |
| 84 | 88 | ||