Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0dc5b0

Browse files
committed
Restructure the file so that it is never empty. No longer needs
Metrowerks specific #ifdef.
1 parent 3293b07 commit d0dc5b0

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Python/pyfpe.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#ifdef WANT_SIGFPE_HANDLER
1212
jmp_buf PyFPE_jbuf;
1313
int PyFPE_counter = 0;
14-
double PyFPE_dummy(void *dummy){ return 1.0; }
15-
#else
16-
#ifdef __MWERKS__
17-
/*
18-
* Metrowerks fails when compiling an empty file, at least in strict ANSI
19-
* mode. - [cjh]
20-
*/
21-
static double PyFPE_dummy( void * );
22-
static double PyFPE_dummy( void *dummy ) { return 1.0; }
23-
#endif
2414
#endif
15+
16+
/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
17+
warning when compiling an empty file. */
18+
19+
double
20+
PyFPE_dummy(dummy)
21+
void *dummy;
22+
{
23+
return 1.0;
24+
}

0 commit comments

Comments
 (0)