瀏覽代碼

math: remove libc.h include from libm.h

libc.h is only for weak_alias so include it directly where it is used
Szabolcs Nagy 11 年之前
父節點
當前提交
afa2aaccea
共有 5 個文件被更改,包括 5 次插入3 次删除
  1. 0 2
      src/internal/libm.h
  2. 1 0
      src/math/lgamma_r.c
  3. 1 0
      src/math/lgammaf_r.c
  4. 1 0
      src/math/lgammal.c
  5. 2 1
      src/math/signgam.c

+ 0 - 2
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 {

+ 1 - 0
src/math/lgamma_r.c

@@ -79,6 +79,7 @@
  */
 
 #include "libm.h"
+#include "libc.h"
 
 static const double
 two52= 4.50359962737049600000e+15, /* 0x43300000, 0x00000000 */

+ 1 - 0
src/math/lgammaf_r.c

@@ -14,6 +14,7 @@
  */
 
 #include "libm.h"
+#include "libc.h"
 
 static const float
 two23= 8.3886080000e+06, /* 0x4b000000 */

+ 1 - 0
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);

+ 2 - 1
src/math/signgam.c

@@ -1,4 +1,5 @@
-#include "libm.h"
+#include <math.h>
+#include "libc.h"
 
 int __signgam = 0;