From faa184ce24d0924a6f745201e838b609a6aa2abe Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 29 Sep 2016 23:49:03 +0300 Subject: [PATCH] Added #ifdef __ANDROID__ to spllog_impl.h --- include/spdlog/details/spdlog_impl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);