summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile.in2
-rw-r--r--libm/k_standard.c3
-rw-r--r--libm/math_private.h2
-rw-r--r--libm/s_matherr.c3
4 files changed, 9 insertions, 1 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index 6b07fe43f..316b1ffc3 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -21,7 +21,7 @@
#
CFLAGS-libm := -DNOT_IN_libc -DIS_IN_libm $(SSP_ALL_CFLAGS)
-CFLAGS-libm += -D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
+CFLAGS-libm += -D_IEEE_LIBM
LDFLAGS-libm.so := $(LDFLAGS)
diff --git a/libm/k_standard.c b/libm/k_standard.c
index 30d83e3ca..4df189853 100644
--- a/libm/k_standard.c
+++ b/libm/k_standard.c
@@ -18,6 +18,8 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $
#include "math_private.h"
#include <errno.h>
+#ifndef _IEEE_LIBM
+
libm_hidden_proto(copysign)
libm_hidden_proto(matherr)
libm_hidden_proto(rint)
@@ -784,3 +786,4 @@ static double zero = 0.0; /* used as const */
}
return exc.retval;
}
+#endif /* _IEEE_LIBM */
diff --git a/libm/math_private.h b/libm/math_private.h
index 30af9ede5..75ca03ecb 100644
--- a/libm/math_private.h
+++ b/libm/math_private.h
@@ -186,7 +186,9 @@ extern double __ieee754_scalb (double,double) attribute_hidden;
#endif
/* fdlibm kernel function */
+#ifndef _IEEE_LIBM
extern double __kernel_standard (double,double,int) attribute_hidden;
+#endif
extern double __kernel_sin (double,double,int) attribute_hidden;
extern double __kernel_cos (double,double) attribute_hidden;
extern double __kernel_tan (double,double,int) attribute_hidden;
diff --git a/libm/s_matherr.c b/libm/s_matherr.c
index 8c19f43bb..0c102e628 100644
--- a/libm/s_matherr.c
+++ b/libm/s_matherr.c
@@ -17,6 +17,8 @@ static char rcsid[] = "$NetBSD: s_matherr.c,v 1.6 1995/05/10 20:47:53 jtc Exp $"
#include "math.h"
#include "math_private.h"
+#ifndef _IEEE_LIBM
+
libm_hidden_proto(matherr)
#ifdef __STDC__
int matherr(struct exception *x)
@@ -30,3 +32,4 @@ libm_hidden_proto(matherr)
return n;
}
libm_hidden_def(matherr)
+#endif