summaryrefslogtreecommitdiff
path: root/Python/pyfpe.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 17:48:25 +0000
committerGuido van Rossum <guido@python.org>1998-08-25 17:48:25 +0000
commit02306d2df4ceda63fe4703ed6f72b266508676b7 (patch)
treee9e08e64af29ad193a41a312b8c1fd63da02c12d /Python/pyfpe.c
parent4ddd47c3ca5ec8f7ad4f069db58dbf885d2d4436 (diff)
downloadcpython-02306d2df4ceda63fe4703ed6f72b266508676b7.tar.gz
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 b3d99854d5..6284c636bd 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;
+}