diff --git a/include/spdlog/common.h b/include/spdlog/common.h index f6042d40..2310ed36 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -42,7 +42,7 @@ #define SPDLOG_DEPRECATED #endif -#ifdef __linux__ +#if defined(__linux__) && !defined(__ANDROID__) #include #define SPDLOG_CATCH_ALL catch (abi::__forced_unwind&) { _err_handler("Unknown exception"); throw; } catch (...) #else // __linux__