Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split <chrono> into <__msvc_chrono.hpp> #2604

Merged
merged 3 commits into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

set(HEADERS
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_all_public_headers.hpp
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_chrono.hpp
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_int128.hpp
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_system_error_abi.hpp
${CMAKE_CURRENT_LIST_DIR}/inc/__msvc_tzdb.hpp
Expand Down
787 changes: 787 additions & 0 deletions stl/inc/__msvc_chrono.hpp

Large diffs are not rendered by default.

762 changes: 3 additions & 759 deletions stl/inc/chrono

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stl/inc/condition_variable
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define _CONDITION_VARIABLE_
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <chrono>
#include <__msvc_chrono.hpp>
#include <memory>
#include <mutex>
#include <xthreads.h>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/experimental/filesystem
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR

#include <__msvc_chrono.hpp> // for chrono::time_point
#include <algorithm> // for replace
#include <chrono> // for chrono::time_point
#include <codecvt> // for codecvt_utf8_*
#include <list> // for recursive_directory_iterator stack
#include <locale> // for wstring_convert
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/future
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <experimental/resumable>
#endif // _RESUMABLE_FUNCTIONS_SUPPORTED

#include <chrono>
#include <__msvc_chrono.hpp>
#include <condition_variable>
#include <functional>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions stl/inc/header-units.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"Version": "1.0",
"BuildAsHeaderUnits": [
// "__msvc_all_public_headers.hpp", // for testing, not production
"__msvc_chrono.hpp",
"__msvc_int128.hpp",
"__msvc_system_error_abi.hpp",
"__msvc_tzdb.hpp",
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/mutex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#error <mutex> is not supported when compiling with /clr:pure.
#endif // _M_CEE_PURE

#include <chrono>
#include <__msvc_chrono.hpp>
#include <cstdlib>
#include <system_error>
#include <thread>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/semaphore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#pragma message("The contents of <semaphore> are available only with C++20 or later.")
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <__msvc_chrono.hpp>
#include <atomic>
#include <chrono>
#include <climits>

#pragma pack(push, _CRT_PACKING)
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/thread
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define _THREAD_
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <chrono>
#include <__msvc_chrono.hpp>
#include <memory>
#include <process.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions tests/std/tests/P0660R10_jthread_and_cv_any/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <assert.h>
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <stdio.h>
Expand Down