aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Duration.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-01-05 12:16:21 +0100
committerShauren <shauren.trinity@gmail.com>2023-08-12 14:27:25 +0200
commit73e7f0fe6d5ea2c75ad452effe9d7b95dd323ea2 (patch)
tree9ecf97ab29113b05a21a4953c8e4952076efbfd9 /src/common/Utilities/Duration.h
parentd0553d499b17b5e20640cea5187934ff0bcbc528 (diff)
Core/Misc: Added a include hack for msvc <chrono> to use only c++17 bits from it
(cherry picked from commit 585900f42d064b9f6adc08015605931163ea79c8)
Diffstat (limited to 'src/common/Utilities/Duration.h')
-rw-r--r--src/common/Utilities/Duration.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/Utilities/Duration.h b/src/common/Utilities/Duration.h
index f506467abda..b4c3f17cb3e 100644
--- a/src/common/Utilities/Duration.h
+++ b/src/common/Utilities/Duration.h
@@ -18,7 +18,12 @@
#ifndef _DURATION_H_
#define _DURATION_H_
+// HACKS TERRITORY
+#if __has_include(<__msvc_chrono.hpp>)
+#include <__msvc_chrono.hpp> // skip all the formatting/istream/locale/mutex bloat
+#else
#include <chrono>
+#endif
/// Milliseconds shorthand typedef.
typedef std::chrono::milliseconds Milliseconds;