summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShizZy <shizzy@6bit.net>2013-09-24 03:47:24 +0200
committerShizZy <shizzy@6bit.net>2013-09-24 03:47:24 +0200
commit1114eb9aaf805851aa68146959b71e3fbbab36b0 (patch)
tree543628f4b3bbe010cd571b1526c64babe48b0f9b /src
parentadded utf8 to common module, utils for dealing with utf8 (diff)
downloadyuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar.gz
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar.bz2
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar.lz
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar.xz
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.tar.zst
yuzu-1114eb9aaf805851aa68146959b71e3fbbab36b0.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/src/platform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/src/platform.h b/src/common/src/platform.h
index d610b418a..d8eacaa84 100644
--- a/src/common/src/platform.h
+++ b/src/common/src/platform.h
@@ -70,9 +70,17 @@
#if EMU_PLATFORM == PLATFORM_WINDOWS
+#include <time.h>
+
#define NOMINMAX
#define EMU_FASTCALL __fastcall
+inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
+ if (localtime_s(result, clock) == 0)
+ return result;
+ return NULL;
+}
+
#else
#define EMU_FASTCALL __attribute__((fastcall))