summaryrefslogtreecommitdiffstats
path: root/src/common/platform.h
diff options
context:
space:
mode:
authordarkf <lw9k123@gmail.com>2014-11-29 06:38:20 +0100
committerdarkf <lw9k123@gmail.com>2014-11-29 06:38:20 +0100
commit459502e48ccb6607e531112e7ae89f62b75023c8 (patch)
tree491c2a24f1496d4abab0d3339e559b9facc74265 /src/common/platform.h
parentMerge pull request #223 from linkmauve/remove-thread (diff)
downloadyuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar.gz
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar.bz2
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar.lz
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar.xz
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.tar.zst
yuzu-459502e48ccb6607e531112e7ae89f62b75023c8.zip
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 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