math: remove libc.h include from libm.h
authorSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 14:03:10 +0000 (14:03 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 14:03:10 +0000 (14:03 +0000)
libc.h is only for weak_alias so include it directly where it is used

src/internal/libm.h
src/math/lgamma_r.c
src/math/lgammaf_r.c
src/math/lgammal.c
src/math/signgam.c

index 946c310..9f0d3bc 100644 (file)
@@ -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 {
index e3ed173..82e296f 100644 (file)
@@ -79,6 +79,7 @@
  */
 
 #include "libm.h"
+#include "libc.h"
 
 static const double
 two52= 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */
index 976986a..dc65bac 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include "libm.h"
+#include "libc.h"
 
 static const float
 two23= 8.3886080000e+06, /* 0x4b000000 */
index 5d56358..cc4895e 100644 (file)
@@ -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);
index b39ceb0..cd72800 100644 (file)
@@ -1,4 +1,5 @@
-#include "libm.h"
+#include <math.h>
+#include "libc.h"
 
 int __signgam = 0;