Skip to content

Commit fdcafc0

Browse files
Split <chrono> into <__msvc_chrono.hpp> (#2604)
Co-authored-by: cpplearner <[email protected]>
1 parent f310638 commit fdcafc0

File tree

11 files changed

+799
-765
lines changed

11 files changed

+799
-765
lines changed

stl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
set(HEADERS
55
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_all_public_headers.hpp
6+
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_chrono.hpp
67
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_int128.hpp
78
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_system_error_abi.hpp
89
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_tzdb.hpp

stl/inc/__msvc_chrono.hpp

Lines changed: 787 additions & 0 deletions
Large diffs are not rendered by default.

stl/inc/chrono

Lines changed: 3 additions & 759 deletions
Large diffs are not rendered by default.

stl/inc/condition_variable

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define _CONDITION_VARIABLE_
99
#include <yvals_core.h>
1010
#if _STL_COMPILER_PREPROCESSOR
11-
#include <chrono>
11+
#include <__msvc_chrono.hpp>
1212
#include <memory>
1313
#include <mutex>
1414
#include <xthreads.h>

stl/inc/experimental/filesystem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include <yvals_core.h>
1010
#if _STL_COMPILER_PREPROCESSOR
1111

12+
#include <__msvc_chrono.hpp> // for chrono::time_point
1213
#include <algorithm> // for replace
13-
#include <chrono> // for chrono::time_point
1414
#include <codecvt> // for codecvt_utf8_*
1515
#include <list> // for recursive_directory_iterator stack
1616
#include <locale> // for wstring_convert

stl/inc/future

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <experimental/resumable>
1818
#endif // _RESUMABLE_FUNCTIONS_SUPPORTED
1919

20-
#include <chrono>
20+
#include <__msvc_chrono.hpp>
2121
#include <condition_variable>
2222
#include <functional>
2323
#include <memory>

stl/inc/header-units.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"Version": "1.0",
66
"BuildAsHeaderUnits": [
77
// "__msvc_all_public_headers.hpp", // for testing, not production
8+
"__msvc_chrono.hpp",
89
"__msvc_int128.hpp",
910
"__msvc_system_error_abi.hpp",
1011
"__msvc_tzdb.hpp",

stl/inc/mutex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#error <mutex> is not supported when compiling with /clr:pure.
1414
#endif // _M_CEE_PURE
1515

16-
#include <chrono>
16+
#include <__msvc_chrono.hpp>
1717
#include <cstdlib>
1818
#include <system_error>
1919
#include <thread>

stl/inc/semaphore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#pragma message("The contents of <semaphore> are available only with C++20 or later.")
1818
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
1919

20+
#include <__msvc_chrono.hpp>
2021
#include <atomic>
21-
#include <chrono>
2222
#include <climits>
2323

2424
#pragma pack(push, _CRT_PACKING)

stl/inc/thread

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define _THREAD_
99
#include <yvals_core.h>
1010
#if _STL_COMPILER_PREPROCESSOR
11-
#include <chrono>
11+
#include <__msvc_chrono.hpp>
1212
#include <memory>
1313
#include <process.h>
1414
#include <tuple>

0 commit comments

Comments
 (0)