www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/26/06:34:11

Date: Mon, 26 Aug 1996 13:21:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Lievre Ludovic <lievre AT mr DOT insa-tlse DOT fr>
Cc: djgpp AT delorie DOT com
Subject: Re: Handling signals
In-Reply-To: <32215F52.264C@mr.insa-tlse.fr>
Message-Id: <Pine.SUN.3.91.960826131738.9606C-100000@is>
Mime-Version: 1.0


On Mon, 26 Aug 1996, Lievre Ludovic wrote:

> I read in the FAQ (June), that DJGPP 2.0 can handle signals. I tried
> that and it works (by examplke with SIGFPE), but with SIGINT, it doesn't
> compile because, the SIGINT is not found in file #include(d) signal.h
> I read this file, and by default is think that SIGINT is'nt defined. So

SIGINT *is* defined on <signal.h>, but if you use -ansi switch to DJGPP,
that definition is concealed from the compiler.  If you use -ansi, just
edit <signal.h> and move the definition of SIGINT before the #ifdndef
_STRICT_ANSI line (SIGINT is an ANSI signal and should be defined even if
-ansi is used;  this will be corrected in the next DJGPP release).  If you
don't use -ansi, SIGINT should be known by GCC, so maybe something else in
your program prevents it from recognizing it. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019