From f329002c101b7d600fdcae13c88f73482b19ea36 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 2 Mar 2021 07:37:31 -0500 Subject: [PATCH] remove typo "_CYGWIN" is not defined for the cygwin or mingw cross compiler: $ echo | gcc -dM -E -xc - | grep -i cygwin $ echo | i686-w64-mingw32-gcc -dM -E -xc - | grep -i cygwin Maybe _CYGWIN is a typo left over from the days when the same gcc compiler was used to compile native windows (gcc -mno-cygwin) and cygwin apps? In any case, !defined(_CYGWIN) is true so removing the test just makes the code a bit clearer. --- jcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcc.c b/jcc.c index 12e77364..372d9df3 100644 --- a/jcc.c +++ b/jcc.c @@ -6065,7 +6065,7 @@ static void listen_loop(void) } #endif -#if defined(_WIN32) && !defined(_CYGWIN) && !defined(SELECTED_ONE_OPTION) +#if defined(_WIN32) && !defined(SELECTED_ONE_OPTION) #define SELECTED_ONE_OPTION child_id = _beginthread( (void (*)(void *))serve, -- 2.39.2