about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-02-03 09:40:56 +0000
committerJakub Jelinek <jakub@redhat.com>2006-02-03 09:40:56 +0000
commite6001d3152ab6cd6246fad22ea02f4a9699661d3 (patch)
treead731eae12473cccfec1c5b24331c4c32ce19f3d
parent9f57ac239bd04f64ae20f6e7b35f387ae6605312 (diff)
downloadglibc-e6001d3152ab6cd6246fad22ea02f4a9699661d3.tar.gz
glibc-e6001d3152ab6cd6246fad22ea02f4a9699661d3.tar.xz
glibc-e6001d3152ab6cd6246fad22ea02f4a9699661d3.zip
* math/math.h (__nldbl_nexttowardf): Put __THROW before
	__attribute__ ((__const__)).
	(__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT
	followed by __THROW.

	* math/math.h [__LDBL_COMPAT && __USE_ISOC99] (nexttowardl): New
	prototype.
-rw-r--r--ChangeLog10
-rw-r--r--math/math.h9
2 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b50bdceaea..77405ff2a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-02-02  Jakub Jelinek  <jakub@redhat.com>
+
+	* math/math.h (__nldbl_nexttowardf): Put __THROW before
+	__attribute__ ((__const__)).
+	(__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT
+	followed by __THROW.
+
+	* math/math.h [__LDBL_COMPAT && __USE_ISOC99] (nexttowardl): New
+	prototype.
+
 2006-02-02  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/futimesat.c [__NR_futimesat]
diff --git a/math/math.h b/math/math.h
index 050b89ca85..c50b2e7b07 100644
--- a/math/math.h
+++ b/math/math.h
@@ -103,13 +103,16 @@ __BEGIN_DECLS
 
 #   ifdef __USE_ISOC99 
 extern float __nldbl_nexttowardf (float __x, long double __y)
-				  __attribute__ ((__const__)) __THROW;
+				  __THROW __attribute__ ((__const__));
 #    ifdef __REDIRECT_NTH
 extern float __REDIRECT_NTH (nexttowardf, (float __x, long double __y),
 			     __nldbl_nexttowardf)
      __attribute__ ((__const__));
 extern double __REDIRECT_NTH (nexttoward, (double __x, long double __y),
 			      nextafter) __attribute__ ((__const__));
+extern long double __REDIRECT_NTH (nexttowardl,
+				   (long double __x, long double __y),
+				   nextafter) __attribute__ ((__const__));
 #    endif
 #   endif
 
@@ -118,8 +121,8 @@ extern double __REDIRECT_NTH (nexttoward, (double __x, long double __y),
 
 #   undef __MATHDECL_1
 #   define __MATHDECL_2(type, function,suffix, args, alias) \
-  extern type __REDIRECT(__MATH_PRECNAME(function,suffix), \
-			 args, alias) __THROW
+  extern type __REDIRECT_NTH(__MATH_PRECNAME(function,suffix), \
+			     args, alias)
 #   define __MATHDECL_1(type, function,suffix, args) \
   __MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix))
 #  endif