From 38d1bba543e16905576fda7aa0c245fa67ac7372 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 15 Sep 2021 12:35:40 +0200 Subject: Added #ifdef condition around Windows-specific exception handling --- zencore/except.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zencore/except.cpp') diff --git a/zencore/except.cpp b/zencore/except.cpp index 0d31885e1..d57b539cd 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -5,6 +5,8 @@ namespace zen { +#if ZEN_PLATFORM_WINDOWS + void ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string_view Message) { @@ -18,6 +20,8 @@ ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string } } +#endif // ZEN_PLATFORM_WINDOWS + void ThrowLastError(std::string_view Message) { -- cgit v1.2.3