bug-gnulib
[Top][All Lists]
Advanced

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

cosl, sinl, logl on Solaris, Cygwin


From: Bruno Haible
Subject: cosl, sinl, logl on Solaris, Cygwin
Date: Sun, 4 Apr 2010 20:18:44 +0100
User-agent: KMail/1.9.9

On Cygwin 1.7.2 and Solaris 8, I'm seeing these errors:

  ../gllib/math.h:526: error: 'cosl' was not declared in this scope
  ../gllib/math.h:672: error: 'logl' was not declared in this scope
  ../gllib/math.h:766: error: 'sinl' was not declared in this scope

There is no reason to define rpl_cosl instead of cosl, because no
platform is known which has the function in some shared libraries
but does not declare it.


2010-04-04  Bruno Haible  <address@hidden>

        math: Fix some C++ test errors on Solaris 8 and Cygwin.
        * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.

--- lib/math.in.h.orig  Sun Apr  4 21:16:50 2010
+++ lib/math.in.h       Sun Apr  4 21:03:11 2010
@@ -225,19 +225,10 @@
 
 
 #if @GNULIB_COSL@
-# if address@hidden@
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-#   undef cosl
-#   define cosl rpl_cosl
-#  endif
-_GL_FUNCDECL_RPL (cosl, long double, (long double x));
-_GL_CXXALIAS_RPL (cosl, long double, (long double x));
-# else
-#  if address@hidden@
+# if address@hidden@ || address@hidden@
 _GL_FUNCDECL_SYS (cosl, long double, (long double x));
-#  endif
-_GL_CXXALIAS_SYS (cosl, long double, (long double x));
 # endif
+_GL_CXXALIAS_SYS (cosl, long double, (long double x));
 _GL_CXXALIASWARN (cosl);
 #elif defined GNULIB_POSIXCHECK
 # undef cosl
@@ -371,19 +362,10 @@
 
 
 #if @GNULIB_LOGL@
-# if address@hidden@
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-#   undef logl
-#   define logl rpl_logl
-#  endif
-_GL_FUNCDECL_RPL (logl, long double, (long double x));
-_GL_CXXALIAS_RPL (logl, long double, (long double x));
-# else
-#  if address@hidden@
+# if address@hidden@ || address@hidden@
 _GL_FUNCDECL_SYS (logl, long double, (long double x));
-#  endif
-_GL_CXXALIAS_SYS (logl, long double, (long double x));
 # endif
+_GL_CXXALIAS_SYS (logl, long double, (long double x));
 _GL_CXXALIASWARN (logl);
 #elif defined GNULIB_POSIXCHECK
 # undef logl
@@ -465,19 +447,10 @@
 
 
 #if @GNULIB_SINL@
-# if address@hidden@
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-#   undef sinl
-#   define sinl rpl_sinl
-#  endif
-_GL_FUNCDECL_RPL (sinl, long double, (long double x));
-_GL_CXXALIAS_RPL (sinl, long double, (long double x));
-# else
-#  if address@hidden@
+# if address@hidden@ || address@hidden@
 _GL_FUNCDECL_SYS (sinl, long double, (long double x));
-#  endif
-_GL_CXXALIAS_SYS (sinl, long double, (long double x));
 # endif
+_GL_CXXALIAS_SYS (sinl, long double, (long double x));
 _GL_CXXALIASWARN (sinl);
 #elif defined GNULIB_POSIXCHECK
 # undef sinl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]