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

Skip to content

Commit c4db476

Browse files
committed
Define sunmath prototypes if sunmath.h was not included.
1 parent f115a08 commit c4db476

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Modules/fpectlmodule.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ static void fpe_reset(Sigfunc *handler)
140140
ld -G -o fpectlmodule.so -L/opt/SUNWspro/lib fpectlmodule.o -lsunmath -lm
141141
*/
142142
#include <math.h>
143+
#ifndef _SUNMATH_H
144+
extern void nonstandard_arithmetic(void);
145+
extern int ieee_flags(const char*, const char*, const char*, char **);
146+
extern long ieee_handler(const char*, const char*, sigfpe_handler_type);
147+
#endif
148+
143149
char *mode="exception", *in="all", *out;
144150
(void) nonstandard_arithmetic();
145151
(void) ieee_flags("clearall",mode,in,&out);

0 commit comments

Comments
 (0)