diff options
| author | Martin Ridgers <[email protected]> | 2021-12-15 13:40:58 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-12-16 09:35:51 +0100 |
| commit | 8b013702277fa813a838a6b55d7506c81ca1f1ac (patch) | |
| tree | 5da8f7cac8b9b70aba1d5765685327d79ce1ba50 /zencore/except.cpp | |
| parent | Deleted unused include (diff) | |
| download | zen-8b013702277fa813a838a6b55d7506c81ca1f1ac.tar.xz zen-8b013702277fa813a838a6b55d7506c81ca1f1ac.zip | |
Compile out source_location use if the toolchain doesn't support it
Diffstat (limited to 'zencore/except.cpp')
| -rw-r--r-- | zencore/except.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp index ebaecf815..fae629286 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -81,7 +81,7 @@ GetSystemErrorAsString(uint32_t ErrorCode) return std::error_code(ErrorCode, std::system_category()).message(); } -#if __cpp_lib_source_location +#if defined(__cpp_lib_source_location) void ThrowLastError(std::string_view Message, const std::source_location& Location) { |