changeset 11741:5f5c1c77ef82

Avoid compilation error on QNX.
author Bruno Haible <bruno@clisp.org>
date Mon, 27 Jul 2009 21:21:02 +0200
parents 435812b9006e
children 531d4547f010
files ChangeLog lib/math.in.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-27  Bruno Haible  <bruno@clisp.org>
+
+	* lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
+	Reported by Matt Kraai <mkraai@beckman.com>.
+
 2009-07-25  Jim Meyering  <meyering@redhat.com>
 
 	maint.mk: avoid warnings about missing files
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -149,6 +149,7 @@
 
 
 #if @GNULIB_MATHL@ || (!@HAVE_DECL_COSL@ && !defined cosl)
+# undef cosl
 extern long double cosl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK
@@ -238,6 +239,7 @@
 
 
 #if @GNULIB_MATHL@ || (!@HAVE_DECL_LOGL@ && !defined logl)
+# undef logl
 extern long double logl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK
@@ -293,6 +295,7 @@
 
 
 #if @GNULIB_MATHL@ || (!@HAVE_DECL_SINL@ && !defined sinl)
+# undef sinl
 extern long double sinl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK