Mail Archives: djgpp/1996/08/26/06:34:11
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 -