diff options
| author | 2023-06-27 19:13:54 -0400 | |
|---|---|---|
| committer | 2023-06-27 19:13:54 -0400 | |
| commit | 21675c9b68741d15b678598aa555536bfc6a6f76 (patch) | |
| tree | 370eb6fd83bf86a050e2cbc9d28abc7ccf3cc8f9 | |
| parent | settings: Catch runtime_error, fallback time zone (diff) | |
| download | yuzu-21675c9b68741d15b678598aa555536bfc6a6f76.tar.gz yuzu-21675c9b68741d15b678598aa555536bfc6a6f76.tar.xz yuzu-21675c9b68741d15b678598aa555536bfc6a6f76.zip | |
settings: Clean up includes
Adds <version> since we are looking at C++ implementation version
details. Also moves exception header includes into the if preprocessor
command since we only use it there.
| -rw-r--r-- | src/common/settings.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index a1df69140..6cbbea1b2 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -1,10 +1,11 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include <exception> | 4 | #include <version> |
| 5 | #include <stdexcept> | ||
| 6 | #if __cpp_lib_chrono >= 201907L | 5 | #if __cpp_lib_chrono >= 201907L |
| 7 | #include <chrono> | 6 | #include <chrono> |
| 7 | #include <exception> | ||
| 8 | #include <stdexcept> | ||
| 8 | #endif | 9 | #endif |
| 9 | #include <string_view> | 10 | #include <string_view> |
| 10 | 11 | ||