added definition _WINDOWS for (mingw and others) compatibility
This commit is contained in:
parent
18adaef056
commit
5ee50170b0
4 changed files with 23 additions and 13 deletions
|
|
@ -42,11 +42,13 @@ void signal_handler( int sig )
|
|||
// ---------------------------
|
||||
{
|
||||
// --- On veut la paix, jusqu'a la fin ---
|
||||
#ifdef SIGQUIT
|
||||
signal( SIGINT, SIG_IGN );
|
||||
signal( SIGQUIT, SIG_IGN );
|
||||
std::cerr << "Ctrl C entered ... closing down" << std::endl ;
|
||||
arret_demande = true;
|
||||
#ifndef _WINDOWS
|
||||
#ifdef SIGQUIT
|
||||
signal( SIGINT, SIG_IGN );
|
||||
signal( SIGQUIT, SIG_IGN );
|
||||
std::cerr << "Ctrl C entered ... closing down" << std::endl ;
|
||||
arret_demande = true;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue