diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-01-05 12:16:21 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-01-05 12:16:21 +0100 |
commit | 585900f42d064b9f6adc08015605931163ea79c8 (patch) | |
tree | 9b723c551bf1f33ed17f189a8f2d4496a0197777 /src/common/Utilities/Duration.h | |
parent | d658641764b6d7f058d515aed8a333e3ca0a6e56 (diff) |
Core/Misc: Added a include hack for msvc <chrono> to use only c++17 bits from it
Diffstat (limited to 'src/common/Utilities/Duration.h')
-rw-r--r-- | src/common/Utilities/Duration.h | 5 |
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; |