[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r9305 - in /trunk/libc: ChangeLog.eglibc math/complex.h math/math.h



Author: maxim
Date: Thu Nov 19 23:57:37 2009
New Revision: 9305

Log:
2009-11-20  Jakub Jelinek  <jakub@xxxxxxxxxx>

	PR libc/10103

	* math/math.h: Provide *l long double prototypes redirecting
	to double functions even when __NO_LONG_DOUBLE_MATH and not
	__LDBL_COMPAT.
	* math/complex.h: Likewise.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/math/complex.h
    trunk/libc/math/math.h

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Thu Nov 19 23:57:37 2009
@@ -1,3 +1,12 @@
+2009-11-20  Jakub Jelinek  <jakub@xxxxxxxxxx>
+
+	PR libc/10103
+
+	* math/math.h: Provide *l long double prototypes redirecting
+	to double functions even when __NO_LONG_DOUBLE_MATH and not
+	__LDBL_COMPAT.
+	* math/complex.h: Likewise.
+
 2009-11-19  Maxim Kuvyrkov  <maxim@xxxxxxxxxxxxxxxx>
 
 	* option-groups.def (OPTION_EGLIBC_LIBM_BIG): New option group.

Modified: trunk/libc/math/complex.h
==============================================================================
--- trunk/libc/math/complex.h (original)
+++ trunk/libc/math/complex.h Thu Nov 19 23:57:37 2009
@@ -85,8 +85,10 @@
 /* And the long double versions.  It is non-critical to define them
    here unconditionally since `long double' is required in ISO C99.  */
 #if (__STDC__ - 0 || __GNUC__ - 0) \
-    && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
-# ifdef __LDBL_COMPAT
+    && (!defined __NO_LONG_DOUBLE_MATH \
+        || defined __LDBL_COMPAT \
+        || !defined _LIBC)
+# if defined __LDBL_COMPAT || defined __NO_LONG_DOUBLE_MATH
 #  undef __MATHDECL_1
 #  define __MATHDECL_1(type, function, args) \
   extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, function)

Modified: trunk/libc/math/math.h
==============================================================================
--- trunk/libc/math/math.h (original)
+++ trunk/libc/math/math.h Thu Nov 19 23:57:37 2009
@@ -98,7 +98,9 @@
 # undef	__MATH_PRECNAME
 
 # if (__STDC__ - 0 || __GNUC__ - 0) \
-     && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
+     && (!defined __NO_LONG_DOUBLE_MATH \
+	 || defined __LDBL_COMPAT \
+	 || !defined _LIBC)
 #  ifdef __LDBL_COMPAT
 
 #   ifdef __USE_ISOC99
@@ -115,9 +117,9 @@
 				   nextafter) __attribute__ ((__const__));
 #    endif
 #   endif
-
-/* Include the file of declarations again, this time using `long double'
-   instead of `double' and appending l to each function name.  */
+#  endif
+
+#  if defined __LDBL_COMPAT || defined __NO_LONG_DOUBLE_MATH
 
 #   undef __MATHDECL_1
 #   define __MATHDECL_2(type, function,suffix, args, alias) \
@@ -127,6 +129,8 @@
   __MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix))
 #  endif
 
+/* Include the file of declarations again, this time using `long double'
+   instead of `double' and appending l to each function name.  */
 #  ifndef _Mlong_double_
 #   define _Mlong_double_	long double
 #  endif
@@ -140,8 +144,8 @@
 #  define _Mdouble_END_NAMESPACE   __END_NAMESPACE_C99
 #  include <bits/mathcalls.h>
 #  undef _Mdouble_
-# undef _Mdouble_BEGIN_NAMESPACE
-# undef _Mdouble_END_NAMESPACE
+#  undef _Mdouble_BEGIN_NAMESPACE
+#  undef _Mdouble_END_NAMESPACE
 #  undef __MATH_PRECNAME
 
 # endif /* __STDC__ || __GNUC__ */