Added #ifdef __ANDROID__ to spllog_impl.h
This commit is contained in:
parent
fa175d6300
commit
faa184ce24
@ -12,9 +12,14 @@
|
|||||||
#include <spdlog/details/registry.h>
|
#include <spdlog/details/registry.h>
|
||||||
#include <spdlog/sinks/file_sinks.h>
|
#include <spdlog/sinks/file_sinks.h>
|
||||||
#include <spdlog/sinks/stdout_sinks.h>
|
#include <spdlog/sinks/stdout_sinks.h>
|
||||||
|
#ifdef SPDLOG_ENABLE_SYSLOG
|
||||||
#include <spdlog/sinks/syslog_sink.h>
|
#include <spdlog/sinks/syslog_sink.h>
|
||||||
|
#endif
|
||||||
#include <spdlog/sinks/ansicolor_sink.h>
|
#include <spdlog/sinks/ansicolor_sink.h>
|
||||||
|
|
||||||
|
#ifdef __ANDROID__
|
||||||
#include <spdlog/sinks/android_sink.h>
|
#include <spdlog/sinks/android_sink.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@ -105,7 +110,7 @@ inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string&
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#ifdef __ANDROID__
|
||||||
inline std::shared_ptr<spdlog::logger> spdlog::android_logger(const std::string& logger_name, const std::string& tag)
|
inline std::shared_ptr<spdlog::logger> spdlog::android_logger(const std::string& logger_name, const std::string& tag)
|
||||||
{
|
{
|
||||||
return create<spdlog::sinks::android_sink>(logger_name, tag);
|
return create<spdlog::sinks::android_sink>(logger_name, tag);
|
||||||
|
Loading…
Reference in New Issue
Block a user