diff options
Diffstat (limited to 'zencore/except.cpp')
| -rw-r--r-- | zencore/except.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp index 609a5387e..d57b539cd 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -2,10 +2,11 @@ #include <fmt/format.h> #include <zencore/except.h> -#include <system_error> namespace zen { +#if ZEN_PLATFORM_WINDOWS + void ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string_view Message) { @@ -19,6 +20,8 @@ ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string } } +#endif // ZEN_PLATFORM_WINDOWS + void ThrowLastError(std::string_view Message) { |