From 6baf6351a1b6ee908dc190eab6f7846a1f2566a9 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Tue, 12 Jan 2021 23:00:55 -0500 Subject: [PATCH] [Kernel] Fix usage of date library For backwards compatibility reasons, the date library does not use the new C++17 uncaught_exception signature, even if compiling under C++17. With GCC 10, libstdc++ marks the old uncaught_exception signature as deprecated, so this causes a compilation error. Fortunately, date library provides a way to select which uncaught_exception version to use, so force using the new version. Signed-off-by: sephiroth99 --- src/xenia/kernel/xclock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/kernel/xclock.h b/src/xenia/kernel/xclock.h index 809dfd775..554e6cd52 100644 --- a/src/xenia/kernel/xclock.h +++ b/src/xenia/kernel/xclock.h @@ -14,6 +14,8 @@ #include "xenia/base/clock.h" +// https://github.com/HowardHinnant/date/commit/5ba1c1ad8514362dba596f228eb20eb13f63d948#r33275526 +#define HAS_UNCAUGHT_EXCEPTIONS 1 #include "third_party/date/include/date/date.h" namespace xe {