Skip to content

Commit

Permalink
Core/Misc: Remove non-portable hack of including `<__msvc_chrono.hpp>…
Browse files Browse the repository at this point in the history
…` - will break in future MSVC release (#30460)

(cherry picked from commit 96956b0e5b74884ff8f7bede5c8c11adbb5ee873)
  • Loading branch information
StephanTLavavej authored and Shauren committed Feb 15, 2025
1 parent d2c1841 commit 939ca92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/common/Utilities/Duration.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@
#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;
Expand Down

0 comments on commit 939ca92

Please sign in to comment.