mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Rely on optimizer to decide whether or not to inline is_term() to restore compatibility with ancient Debian (armv4t)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ const char** argv_dnsmasq = NULL;
|
||||
#define COL_PURPLE "\x1b[95m" // bright foreground color
|
||||
#define COL_CYAN "\x1b[96m" // bright foreground color
|
||||
|
||||
static inline bool __attribute__ ((pure)) is_term(void)
|
||||
static bool __attribute__ ((pure)) is_term(void)
|
||||
{
|
||||
// test whether STDOUT refers to a terminal
|
||||
return isatty(fileno(stdout)) == 1;
|
||||
|
||||
Reference in New Issue
Block a user