From 8b013702277fa813a838a6b55d7506c81ca1f1ac Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 15 Dec 2021 13:40:58 +0100 Subject: Compile out source_location use if the toolchain doesn't support it --- zencore/except.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/except.cpp') 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) { -- cgit v1.2.3