remove typo
authorLee <ler762@users.sourceforge.net>
Tue, 2 Mar 2021 12:37:31 +0000 (07:37 -0500)
committerLee <ler762@users.sourceforge.net>
Tue, 2 Mar 2021 12:37:31 +0000 (07:37 -0500)
"_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

diff --git a/jcc.c b/jcc.c
index 12e7736..372d9df 100644 (file)
--- 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,