summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2011-11-12 19:55:48 +0000
committertheraven <theraven@FreeBSD.org>2011-11-12 19:55:48 +0000
commitcc75dec446313f522fc9482a85f2c0e9f1f6111f (patch)
tree4f40843039f88aaf2aae7c508e6f03c85f00868e
parent9e74124500b809fd0e7dae8e9e93ecc5b90293f9 (diff)
downloadFreeBSD-src-cc75dec446313f522fc9482a85f2c0e9f1f6111f.zip
FreeBSD-src-cc75dec446313f522fc9482a85f2c0e9f1f6111f.tar.gz
Expose the unimplemented libm functions in the math.h header. This allows C++'s <cmath> to work without the compiler complaining that the C++ versions are calling implicitly-declared functions. You will still get a linker error when they are called. OpenBSD 5.0 claims to fully implement the C99 <math.h> stuff, so might be worth investigating...
Reviewed by: das Approved by: dim (mentor)
-rw-r--r--lib/msun/src/math.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index 69b138e..9389dda 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -395,32 +395,32 @@ float significandf(float);
* long double versions of ISO/POSIX math functions
*/
#if __ISO_C_VISIBLE >= 1999
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double acoshl(long double);
#endif
long double acosl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double asinhl(long double);
#endif
long double asinl(long double);
long double atan2l(long double, long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double atanhl(long double);
#endif
long double atanl(long double);
long double cbrtl(long double);
long double ceill(long double);
long double copysignl(long double, long double) __pure2;
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double coshl(long double);
#endif
long double cosl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double erfcl(long double);
long double erfl(long double);
#endif
long double exp2l(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double expl(long double);
long double expm1l(long double);
#endif
@@ -435,18 +435,18 @@ long double frexpl(long double value, int *); /* fundamentally !__pure2 */
long double hypotl(long double, long double);
int ilogbl(long double) __pure2;
long double ldexpl(long double, int);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double lgammal(long double);
#endif
long long llrintl(long double);
long long llroundl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double log10l(long double);
long double log1pl(long double);
long double log2l(long double);
#endif
long double logbl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double logl(long double);
#endif
long lrintl(long double);
@@ -458,7 +458,7 @@ long double nextafterl(long double, long double);
double nexttoward(double, long double);
float nexttowardf(float, long double);
long double nexttowardl(long double, long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double powl(long double, long double);
#endif
long double remainderl(long double, long double);
@@ -467,16 +467,16 @@ long double rintl(long double);
long double roundl(long double);
long double scalblnl(long double, long);
long double scalbnl(long double, int);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double sinhl(long double);
#endif
long double sinl(long double);
long double sqrtl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double tanhl(long double);
#endif
long double tanl(long double);
-#if 0
+#if _DECLARE_C99_LDBL_MATH
long double tgammal(long double);
#endif
long double truncl(long double);
OpenPOWER on IntegriCloud