summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-07-23 18:10:18 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-07-23 18:10:18 (GMT)
commit1be46844d9c858a21021e2c3ad0ef9bbee64d9e0 (patch)
treeccddb1369834ad559d8c61954a8354548fdc2c57 /Modules/signalmodule.c
parent2f2370bfc99e95a4f5edaf4d29cd47afd54fb1b7 (diff)
downloadcpython-1be46844d9c858a21021e2c3ad0ef9bbee64d9e0.zip
cpython-1be46844d9c858a21021e2c3ad0ef9bbee64d9e0.tar.gz
cpython-1be46844d9c858a21021e2c3ad0ef9bbee64d9e0.tar.bz2
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.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 3a2a6df..6fe516a 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -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);
}