changeset 11735:1dc493668d2b

Avoid syntax error on QNX.
author Bruno Haible <bruno@clisp.org>
date Sat, 25 Jul 2009 11:17:24 +0200
parents 20a8435e98c7
children 9f4d092a26a4
files ChangeLog lib/math.in.h
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-25  Bruno Haible  <bruno@clisp.org>
+
+	* lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
+	defined as macros. Needed on QNX 6.4.1.
+	Reported by Matt Kraai <mkraai@beckman.com>.
+
 2009-07-25  Bruno Haible  <bruno@clisp.org>
 
 	* gnulib-tool (func_create_testdir, func_create_megatestdir): Exclude
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -148,7 +148,7 @@
 #endif
 
 
-#if @GNULIB_MATHL@ || !@HAVE_DECL_COSL@
+#if @GNULIB_MATHL@ || (!@HAVE_DECL_COSL@ && !defined cosl)
 extern long double cosl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK
@@ -237,7 +237,7 @@
 #endif
 
 
-#if @GNULIB_MATHL@ || !@HAVE_DECL_LOGL@
+#if @GNULIB_MATHL@ || (!@HAVE_DECL_LOGL@ && !defined logl)
 extern long double logl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK
@@ -292,7 +292,7 @@
 #endif
 
 
-#if @GNULIB_MATHL@ || !@HAVE_DECL_SINL@
+#if @GNULIB_MATHL@ || (!@HAVE_DECL_SINL@ && !defined sinl)
 extern long double sinl (long double x);
 #endif
 #if !@GNULIB_MATHL@ && defined GNULIB_POSIXCHECK