mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
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:
parent
2f2370bfc9
commit
1be46844d9
3 changed files with 27 additions and 7 deletions
|
|
@ -168,9 +168,7 @@ intcatcher(int sig)
|
|||
}
|
||||
signal(SIGINT, intcatcher);
|
||||
Py_AddPendingCall(checksignals_witharg, NULL);
|
||||
#if RETSIGTYPE != void
|
||||
return 0;
|
||||
#endif
|
||||
Py_RETURN_FROM_SIGNAL_HANDLER(0);
|
||||
}
|
||||
|
||||
static RETSIGTYPE (*old_siginthandler)(int) = SIG_DFL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue