diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 701c0e95..df332905 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -3,6 +3,8 @@ #pragma once +#ifdef __ANDROID__ + #include "spdlog/details/fmt_helper.h" #include "spdlog/details/null_mutex.h" #include "spdlog/details/os.h" @@ -113,3 +115,5 @@ inline std::shared_ptr android_logger_st(const std::string &logger_name, } } // namespace spdlog + +#endif // __ANDROID__ \ No newline at end of file