bug-gnulib
[Top][All Lists]
Advanced

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

Add some #undef's to math.in.h, for AIX with xlc.


From: Ralf Wildenhues
Subject: Add some #undef's to math.in.h, for AIX with xlc.
Date: Sun, 17 Jan 2010 12:40:07 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

AIX 5.3 needs a number of #undef's in math.in.h, in order to compile,
but I'm not sure whether that is the right fix, or some other logic is
wrong.

What do you need to know to analyze this?

Thanks,
Ralf

    Add some #undef's to math.in.h, for AIX with xlc.
    
    * lib/math.in.h (acosl, asinl, atanl, expl, sqrtl, tanl):
    Undefine before declaring them, for AIX 5.3 with xlc.

diff --git a/lib/math.in.h b/lib/math.in.h
index 7f09424..f9e62b8 100644
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -119,6 +119,7 @@ extern double frexp (double x, int *expptr) _GL_ARG_NONNULL 
((2));
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef acosl
 extern long double acosl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK
@@ -131,6 +132,7 @@ extern long double acosl (long double x);
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef asinl
 extern long double asinl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK
@@ -143,6 +145,7 @@ extern long double asinl (long double x);
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef atanl
 extern long double atanl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK
@@ -195,6 +198,7 @@ extern long double cosl (long double x);
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef expl
 extern long double expl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK
@@ -341,6 +345,7 @@ extern long double sinl (long double x);
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef sqrtl
 extern long double sqrtl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK
@@ -353,6 +358,7 @@ extern long double sqrtl (long double x);
 
 
 #if @GNULIB_MATHL@ || address@hidden@
+#undef tanl
 extern long double tanl (long double x);
 #endif
 #if address@hidden@ && defined GNULIB_POSIXCHECK




reply via email to

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