Take Cygwin into account in some #if lines.

This change is no-op, but good to have just in case
for the future.
This commit is contained in:
Lasse Collin 2010-05-27 14:32:51 +03:00
parent a334348dc0
commit 44d70cb154
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
volatile sig_atomic_t user_abort = false; volatile sig_atomic_t user_abort = false;
#ifndef _WIN32 #if !(defined(_WIN32) && !defined(__CYGWIN__))
/// If we were interrupted by a signal, we store the signal number so that /// If we were interrupted by a signal, we store the signal number so that
/// we can raise that signal to kill the program when all cleanups have /// we can raise that signal to kill the program when all cleanups have

View File

@ -21,7 +21,7 @@ extern volatile sig_atomic_t user_abort;
extern void signals_init(void); extern void signals_init(void);
#if defined(_WIN32) || defined(__VMS) #if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__VMS)
# define signals_block() do { } while (0) # define signals_block() do { } while (0)
# define signals_unblock() do { } while (0) # define signals_unblock() do { } while (0)
#else #else
@ -34,7 +34,7 @@ extern void signals_block(void);
extern void signals_unblock(void); extern void signals_unblock(void);
#endif #endif
#ifdef _WIN32 #if defined(_WIN32) && !defined(__CYGWIN__)
# define signals_exit() do { } while (0) # define signals_exit() do { } while (0)
#else #else
/// If user has sent us a signal earlier to terminate the process, /// If user has sent us a signal earlier to terminate the process,