bug-gnulib
[Top][All Lists]
Advanced

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

trunc, truncf on Solaris


From: Bruno Haible
Subject: trunc, truncf on Solaris
Date: Sun, 4 Apr 2010 19:46:59 +0100
User-agent: KMail/1.9.9

On Solaris 8, I'm seeing these errors:

  ../gllib/math.h:816: error: 'truncf' was not declared in this scope
  ../gllib/math.h:835: error: 'trunc' was not declared in this scope

This fixes it, by using the simpler idiom for a missing function.


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

        math: Fix some C++ test errors on Solaris 8.
        * lib/math.in.h (truncf, trunc): Use simpler idiom.

--- lib/math.in.h.orig  Sun Apr  4 20:08:04 2010
+++ lib/math.in.h       Sun Apr  4 20:07:16 2010
@@ -520,14 +520,9 @@
 
 #if @GNULIB_TRUNCF@
 # if address@hidden@
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-#   define truncf rpl_truncf
-#  endif
-_GL_FUNCDECL_RPL (truncf, float, (float x));
-_GL_CXXALIAS_RPL (truncf, float, (float x));
-# else
-_GL_CXXALIAS_SYS (truncf, float, (float x));
+_GL_FUNCDECL_SYS (truncf, float, (float x));
 # endif
+_GL_CXXALIAS_SYS (truncf, float, (float x));
 _GL_CXXALIASWARN (truncf);
 #elif defined GNULIB_POSIXCHECK
 # undef truncf
@@ -539,14 +534,9 @@
 
 #if @GNULIB_TRUNC@
 # if address@hidden@
-#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-#   define trunc rpl_trunc
-#  endif
-_GL_FUNCDECL_RPL (trunc, double, (double x));
-_GL_CXXALIAS_RPL (trunc, double, (double x));
-# else
-_GL_CXXALIAS_SYS (trunc, double, (double x));
+_GL_FUNCDECL_SYS (trunc, double, (double x));
 # endif
+_GL_CXXALIAS_SYS (trunc, double, (double x));
 _GL_CXXALIASWARN (trunc);
 #elif defined GNULIB_POSIXCHECK
 # undef trunc




reply via email to

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