forked from lthn/blockchain
excluded srdout from android build
This commit is contained in:
parent
f02be48e03
commit
161acc3561
1 changed files with 4 additions and 0 deletions
|
|
@ -365,6 +365,7 @@ namespace log_space
|
|||
|
||||
inline bool is_stdout_a_tty()
|
||||
{
|
||||
#ifndef ANDROID_BUILD
|
||||
static std::atomic<bool> initialized(false);
|
||||
static std::atomic<bool> 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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue