diff --git a/src/bridges/bridge_python_generic_hash_mp.c b/src/bridges/bridge_python_generic_hash_mp.c index 6ff1edc98..a40d55373 100644 --- a/src/bridges/bridge_python_generic_hash_mp.c +++ b/src/bridges/bridge_python_generic_hash_mp.c @@ -188,7 +188,7 @@ typedef struct } python_interpreter_t; -#if defined (_WIN) || defined (__APPLE__) +#if defined (_WIN) || defined (__CYGWIN__) || defined (__APPLE__) static char *DEFAULT_SOURCE_FILENAME = "generic_hash_sp"; #else static char *DEFAULT_SOURCE_FILENAME = "generic_hash_mp"; @@ -714,7 +714,7 @@ void *platform_init (user_options_t *user_options) unit_t *unit_buf = &python_interpreter->units_buf[0]; - #if defined (_WIN) || defined (__APPLE__) + #if defined (_WIN) || defined (__CYGWIN__) || defined (__APPLE__) fprintf (stderr, "Attention!!! Falling back to single-threaded mode.\n"); fprintf (stderr, " Windows and MacOS ds not support multiprocessing module cleanly!\n"); fprintf (stderr, " For multithreading on Windows and MacOS, please use -m 72000 instead.\n\n"); diff --git a/src/bridges/bridge_python_generic_hash_sp.c b/src/bridges/bridge_python_generic_hash_sp.c index 98fd55fd0..beeb7d948 100644 --- a/src/bridges/bridge_python_generic_hash_sp.c +++ b/src/bridges/bridge_python_generic_hash_sp.c @@ -532,7 +532,7 @@ static bool init_python (hc_python_lib_t *python) printf ("Loaded python library from: %s\n\n", pythondll_path); } - #if defined (_WIN) || defined (__APPLE__) + #if defined (_WIN) || defined (__CYGWIN__) || defined (__APPLE__) #else fprintf (stderr, "Attention!!! The 'free-threaded' python library has some major downsides.\n");