From 1925a88e7a3b70e49ec6b13a0df6f17ef1dfcb4f Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 7 Apr 2024 17:41:52 +0300 Subject: [PATCH] freadln.c: test: add extra parentheses into `#if` condition Test: Add extra parentheses around the conjunction among disjunctions: X || (Y && Z) --- c-programming/io/freadln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-programming/io/freadln.c b/c-programming/io/freadln.c index 36a0ea2..e14a47b 100644 --- a/c-programming/io/freadln.c +++ b/c-programming/io/freadln.c @@ -87,8 +87,8 @@ int freadln(FILE* f, char** output, size_t* length_out) { # include # define SLEEP_FN(x) Sleep((DWORD) x) # define DO_SLEEP 1 -# elif defined(__CYGWIN__) || defined(__unix__) || defined(__APPLE__) && \ - defined(__MACH__) || defined(__linux__) || defined(__FreeBSD__) || \ +# elif defined(__CYGWIN__) || defined(__unix__) || (defined(__APPLE__) && \ + defined(__MACH__)) || defined(__linux__) || defined(__FreeBSD__) || \ defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || \ defined(__DragonFly__) || defined(__MINGW32__) || defined(__MINGW64__) # include