summaryrefslogtreecommitdiffstats
path: root/libm
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-21 04:53:46 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-21 04:53:46 +0000
commit08a1ecd221e5d6377f2835bda704dfc5ce40d78a (patch)
tree57c99566f32dfabb6a8adcdb149584e55b17fd8b /libm
parentb6334bd014c5528829bf0d5bd1fbf7f5206dab6f (diff)
downloaduClibc-alpine-08a1ecd221e5d6377f2835bda704dfc5ce40d78a.tar.bz2
uClibc-alpine-08a1ecd221e5d6377f2835bda704dfc5ce40d78a.tar.xz
Merge from trunk.
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile.in2
-rw-r--r--libm/k_standard.c4
-rw-r--r--libm/math_private.h2
-rw-r--r--libm/s_lib_version.c2
-rw-r--r--libm/s_matherr.c3
5 files changed, 9 insertions, 4 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 11df7bb5c..4df189853 100644
--- a/libm/k_standard.c
+++ b/libm/k_standard.c
@@ -18,10 +18,11 @@ 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)
-libm_hidden_proto(_LIB_VERSION)
#ifndef _USE_WRITE
#include <stdio.h> /* fputs(), stderr */
@@ -785,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_lib_version.c b/libm/s_lib_version.c
index 4028dfd6f..fde8e3bf6 100644
--- a/libm/s_lib_version.c
+++ b/libm/s_lib_version.c
@@ -24,7 +24,6 @@ static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Ex
/*
* define and initialize _LIB_VERSION
*/
-libm_hidden_proto(_LIB_VERSION)
#ifdef _POSIX_MODE
_LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
#else
@@ -38,4 +37,3 @@ _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
#endif
#endif
#endif
-libm_hidden_data_def(_LIB_VERSION)
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