added definition _WINDOWS for (mingw and others) compatibility

This commit is contained in:
tlegrand 2007-11-26 07:56:08 +00:00
commit 5ee50170b0
4 changed files with 23 additions and 13 deletions

View file

@ -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
}