summaryrefslogtreecommitdiffstats
path: root/Python/pyfpe.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 17:48:25 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-25 17:48:25 (GMT)
commitd0dc5b06a2e51f5b01a14cf1ce291467bb10cfb7 (patch)
treeb8c61198d5e4201b8e04a12618d634d7c87c2d1a /Python/pyfpe.c
parent3293b07df58a875afaf3fc82c1e499af59bc99e4 (diff)
downloadcpython-d0dc5b06a2e51f5b01a14cf1ce291467bb10cfb7.zip
cpython-d0dc5b06a2e51f5b01a14cf1ce291467bb10cfb7.tar.gz
cpython-d0dc5b06a2e51f5b01a14cf1ce291467bb10cfb7.tar.bz2
Restructure the file so that it is never empty. No longer needs
Metrowerks specific #ifdef.
Diffstat (limited to 'Python/pyfpe.c')
-rw-r--r--Python/pyfpe.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/Python/pyfpe.c b/Python/pyfpe.c
index b3d9985..6284c63 100644
--- a/Python/pyfpe.c
+++ b/Python/pyfpe.c
@@ -11,14 +11,14 @@
#ifdef WANT_SIGFPE_HANDLER
jmp_buf PyFPE_jbuf;
int PyFPE_counter = 0;
-double PyFPE_dummy(void *dummy){ return 1.0; }
-#else
-#ifdef __MWERKS__
-/*
- * Metrowerks fails when compiling an empty file, at least in strict ANSI
- * mode. - [cjh]
- */
-static double PyFPE_dummy( void * );
-static double PyFPE_dummy( void *dummy ) { return 1.0; }
-#endif
#endif
+
+/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
+ warning when compiling an empty file. */
+
+double
+PyFPE_dummy(dummy)
+ void *dummy;
+{
+ return 1.0;
+}