mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Define sunmath prototypes if sunmath.h was not included.
This commit is contained in:
parent
f115a0826d
commit
c4db476c87
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue