Mercurial > cpython-lru_cache-weakref
diff Python/pyfpe.c @ 9045:ad6bc2c5d353 legacy-trunk
Restructure the file so that it is never empty. No longer needs
Metrowerks specific #ifdef.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 25 Aug 1998 17:48:25 +0000 |
| parents | bd47ee068b83 |
| children | f79434ee41fa |
line wrap: on
line diff
--- a/Python/pyfpe.c Tue Aug 25 16:07:15 1998 +0000 +++ b/Python/pyfpe.c Tue Aug 25 17:48:25 1998 +0000 @@ -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; +}
