From 161acc356123ba895a18a8a6602ba768446715b2 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 21 Feb 2020 04:18:54 +0100 Subject: [PATCH] excluded srdout from android build --- contrib/epee/include/misc_log_ex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index 5e4d9a31..31b31e4b 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -365,6 +365,7 @@ namespace log_space inline bool is_stdout_a_tty() { +#ifndef ANDROID_BUILD static std::atomic initialized(false); static std::atomic is_a_tty(false); @@ -379,6 +380,9 @@ namespace log_space } return is_a_tty.load(std::memory_order_relaxed); +#else + return false; +#endif } inline void set_console_color(int color, bool bright)