Define sunmath prototypes if sunmath.h was not included.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 7 Mar 2001 10:22:20 +0000 (10:22 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 7 Mar 2001 10:22:20 +0000 (10:22 +0000)
Modules/fpectlmodule.c

index ff3ea76dd53b6e26a34ee7bc7c8fc57c200a8a64..843bc165fa782e9dd9ae480d77749a07a34410eb 100644 (file)
@@ -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);