diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index bc283c83..820e03a4 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -12,9 +12,14 @@ #include #include #include +#ifdef SPDLOG_ENABLE_SYSLOG #include +#endif #include + +#ifdef __ANDROID__ #include +#endif #include #include @@ -105,7 +110,7 @@ inline std::shared_ptr spdlog::syslog_logger(const std::string& } #endif -#if defined(__ANDROID__) +#ifdef __ANDROID__ inline std::shared_ptr spdlog::android_logger(const std::string& logger_name, const std::string& tag) { return create(logger_name, tag);