Kaydet (Commit) c4db476c authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Define sunmath prototypes if sunmath.h was not included.

üst f115a082
...@@ -140,6 +140,12 @@ static void fpe_reset(Sigfunc *handler) ...@@ -140,6 +140,12 @@ static void fpe_reset(Sigfunc *handler)
ld -G -o fpectlmodule.so -L/opt/SUNWspro/lib fpectlmodule.o -lsunmath -lm ld -G -o fpectlmodule.so -L/opt/SUNWspro/lib fpectlmodule.o -lsunmath -lm
*/ */
#include <math.h> #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; char *mode="exception", *in="all", *out;
(void) nonstandard_arithmetic(); (void) nonstandard_arithmetic();
(void) ieee_flags("clearall",mode,in,&out); (void) ieee_flags("clearall",mode,in,&out);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment