diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-05-27 02:17:41 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-05-27 02:17:41 +0300 |
commit | 74bd5659a592f9f61b20f0cd6fbc7649ab47a80e (patch) | |
tree | 945971ec553a667ba09f252ed3e1cbcae3d8e3d5 | |
parent | 836b78e9d78e78626fb2c4dd7adfd687ba9f292e (diff) | |
download | ydb-74bd5659a592f9f61b20f0cd6fbc7649ab47a80e.tar.gz |
util: Do not include on Windows
ref:4f285c4cb9d12ff2234491f46dd9d68634f9b9bb
-rw-r--r-- | util/generic/yexception.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/generic/yexception.cpp b/util/generic/yexception.cpp index 780c98ede2..ac62a8f4d2 100644 --- a/util/generic/yexception.cpp +++ b/util/generic/yexception.cpp @@ -4,7 +4,9 @@ #include <util/system/backtrace.h> #include <util/system/type_name.h> -#include <cxxabi.h> +#if defined(_linux_) || defined(_android_) || defined(_darwin_) + #include <cxxabi.h> +#endif #include <stdexcept> @@ -95,7 +97,7 @@ bool UncaughtException() noexcept { } std::string CurrentExceptionTypeName() { -#if defined(_linux_) || defined(_darwin_) +#if defined(_linux_) || defined(_android_) || defined(_darwin_) std::type_info* currentExceptionTypePtr = abi::__cxa_current_exception_type(); if (currentExceptionTypePtr) { return TypeName(*currentExceptionTypePtr); |