]> granicus.if.org Git - python/commitdiff
Restructure the file so that it is never empty. No longer needs
authorGuido van Rossum <guido@python.org>
Tue, 25 Aug 1998 17:48:25 +0000 (17:48 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 25 Aug 1998 17:48:25 +0000 (17:48 +0000)
Metrowerks specific #ifdef.

Python/pyfpe.c

index b3d99854d5c4efaf1f8fe8b677d229388b2382de..6284c636bd84971a467f08bf49d0a59a4365c83c 100644 (file)
 #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;
+}