diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-03-07 10:22:20 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-03-07 10:22:20 +0000 |
commit | 4d367b7ca2fb00ef1806dae5e1603557cb423ad2 (patch) | |
tree | f7c923ca60b790adb770549964646f70a6677f40 /Modules/fpectlmodule.c | |
parent | dd6621267957bf621629f6ccb1930f089c7fd3eb (diff) | |
download | cpython-4d367b7ca2fb00ef1806dae5e1603557cb423ad2.tar.gz |
Define sunmath prototypes if sunmath.h was not included.
Diffstat (limited to 'Modules/fpectlmodule.c')
-rw-r--r-- | Modules/fpectlmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c index ff3ea76dd5..843bc165fa 100644 --- a/Modules/fpectlmodule.c +++ b/Modules/fpectlmodule.c @@ -140,6 +140,12 @@ static void fpe_reset(Sigfunc *handler) ld -G -o fpectlmodule.so -L/opt/SUNWspro/lib fpectlmodule.o -lsunmath -lm */ #include <math.h> +#ifndef _SUNMATH_H + extern void nonstandard_arithmetic(void); + extern int ieee_flags(const char*, const char*, const char*, char **); + extern long ieee_handler(const char*, const char*, sigfpe_handler_type); +#endif + char *mode="exception", *in="all", *out; (void) nonstandard_arithmetic(); (void) ieee_flags("clearall",mode,in,&out); |