Browse Source

198 out of 203 files build now.

Viral B. Shah 13 years ago
parent
commit
394d97b5e2
3 changed files with 8 additions and 5 deletions
  1. 1 1
      src/build.clang.sh
  2. 5 2
      src/math_private.h
  3. 2 2
      src/openlibm.h

+ 1 - 1
src/build.clang.sh

@@ -1 +1 @@
-for i in *.c; do clang -D__BSD_VISIBLE -c -O0 -I. -I../include -I../ld128 $i; done 2>err
+for i in *.c; do clang -D__BSD_VISIBLE -Wno-implicit-function-declaration -c -O0 -I. -I../include -I../ld128 $i; done 2>err

+ 5 - 2
src/math_private.h

@@ -19,6 +19,7 @@
 
 #include <sys/types.h>
 #include <machine/endian.h>
+#include <complex.h>
 
 /*
  * The original fdlibm code used statements like:
@@ -232,7 +233,8 @@ do {								\
  */
 void _scan_nan(u_int32_t *__words, int __num_words, const char *__s);
 
-#ifdef _COMPLEX_H
+//VBS
+//#ifdef _COMPLEX_H
 
 /*
  * C99 specifies that complex numbers have the same representation as
@@ -293,7 +295,8 @@ cpackl(long double x, long double y)
 	IMAGPART(z) = y;
 	return (z.f);
 }
-#endif /* _COMPLEX_H */
+//VBS
+//#endif /* _COMPLEX_H */
  
 #ifdef __GNUCLIKE_ASM
 

+ 2 - 2
src/openlibm.h

@@ -57,8 +57,8 @@ extern const union __nan_un {
 #endif
 
 #if __ISO_C_VISIBLE >= 1999
-#define	FP_ILOGB0	(-__INT_MAX)
-#define	FP_ILOGBNAN	__INT_MAX
+#define	FP_ILOGB0	(-INT_MAX)
+#define	FP_ILOGBNAN	INT_MAX
 
 #ifdef __MATH_BUILTIN_CONSTANTS
 #define	HUGE_VALF	__builtin_huge_valf()