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:
DL6ER
2023-05-23 20:25:53 +02:00
parent 21ac19bf22
commit 479fc912e5
+1 -1
View File
@@ -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;