Recent ANSIfication introduced a couple instances of

#if RETSIGTYPE != void
That isn't C, and MSVC properly refuses to compile it.
Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h
to expand to the correct thing based on RETSIGTYPE.  However,
only void is ANSI!  Do we still have platforms that return int?
The Unix config mess appears to #define RETSIGTYPE by magic
without being asked to, so I assume it's "a problem" across
Unices still.
This commit is contained in:
Tim Peters 2000-07-23 18:10:18 +00:00
parent 2f2370bfc9
commit 1be46844d9
3 changed files with 27 additions and 7 deletions

View file

@ -143,9 +143,7 @@ signal_handler(int sig_num)
siginterrupt(sig_num, 1);
#endif
signal(sig_num, signal_handler);
#if RETSIGTYPE != void
return 0;
#endif
Py_RETURN_FROM_SIGNAL_HANDLER(0);
}