summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-09-05 14:03:10 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-09-05 14:03:10 +0000
commitafa2aaccea6e9f8c55809abb6471dc9aaa402711 (patch)
treea26cadb973ab5763273821235bde6974dd792448 /src
parent101e6012856918440b5d7474739c3fc22a8d3b85 (diff)
downloadmusl-afa2aaccea6e9f8c55809abb6471dc9aaa402711.tar.gz
musl-afa2aaccea6e9f8c55809abb6471dc9aaa402711.tar.bz2
musl-afa2aaccea6e9f8c55809abb6471dc9aaa402711.tar.xz
musl-afa2aaccea6e9f8c55809abb6471dc9aaa402711.zip
math: remove libc.h include from libm.h
libc.h is only for weak_alias so include it directly where it is used
Diffstat (limited to 'src')
-rw-r--r--src/internal/libm.h2
-rw-r--r--src/math/lgamma_r.c1
-rw-r--r--src/math/lgammaf_r.c1
-rw-r--r--src/math/lgammal.c1
-rw-r--r--src/math/signgam.c3
5 files changed, 5 insertions, 3 deletions
diff --git a/src/internal/libm.h b/src/internal/libm.h
index 946c310d..9f0d3bc8 100644
--- a/src/internal/libm.h
+++ b/src/internal/libm.h
@@ -19,8 +19,6 @@
#include <complex.h>
#include <endian.h>
-#include "libc.h"
-
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
union ldshape {
diff --git a/src/math/lgamma_r.c b/src/math/lgamma_r.c
index e3ed1733..82e296f5 100644
--- a/src/math/lgamma_r.c
+++ b/src/math/lgamma_r.c
@@ -79,6 +79,7 @@
*/
#include "libm.h"
+#include "libc.h"
static const double
two52= 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */
diff --git a/src/math/lgammaf_r.c b/src/math/lgammaf_r.c
index 976986aa..dc65bace 100644
--- a/src/math/lgammaf_r.c
+++ b/src/math/lgammaf_r.c
@@ -14,6 +14,7 @@
*/
#include "libm.h"
+#include "libc.h"
static const float
two23= 8.3886080000e+06, /* 0x4b000000 */
diff --git a/src/math/lgammal.c b/src/math/lgammal.c
index 5d56358e..cc4895eb 100644
--- a/src/math/lgammal.c
+++ b/src/math/lgammal.c
@@ -87,6 +87,7 @@
#define _GNU_SOURCE
#include "libm.h"
+#include "libc.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
double __lgamma_r(double x, int *sg);
diff --git a/src/math/signgam.c b/src/math/signgam.c
index b39ceb04..cd728001 100644
--- a/src/math/signgam.c
+++ b/src/math/signgam.c
@@ -1,4 +1,5 @@
-#include "libm.h"
+#include <math.h>
+#include "libc.h"
int __signgam = 0;