Jim Meyering wrote:
> > * tests/test-frexpl.c (exp): #define to 'exponent' to avoid
> > shadowing the function.
> > * tests/test-frexp.c: Likewise.

I applied this on 2008-04-02, but it broke compilation on AIX 4 and AIX 5
with xlc, because that system defines exp already as a macro in <math.h>:
#define exp(__x)          __exp(__x)

This fixes it.

2008-04-13  Bruno Haible  <[EMAIL PROTECTED]>

        Fix AIX compilation failure introduced on 2008-04-02.
        * tests/test-frexp.c (exp): Undefine before redefining.
        * tests/test-frexpl.c (exp): Likewise.

*** tests/test-frexp.c.orig     2008-04-13 21:56:14.000000000 +0200
--- tests/test-frexp.c  2008-04-13 21:53:39.000000000 +0200
***************
*** 29,34 ****
--- 29,35 ----
  
  /* Avoid some warnings from "gcc -Wshadow".
     This file doesn't use the exp() function.  */
+ #undef exp
  #define exp exponent
  
  #define ASSERT(expr) \
*** tests/test-frexpl.c.orig    2008-04-13 21:56:14.000000000 +0200
--- tests/test-frexpl.c 2008-04-13 21:53:39.000000000 +0200
***************
*** 29,34 ****
--- 29,35 ----
  
  /* Avoid some warnings from "gcc -Wshadow".
     This file doesn't use the exp() function.  */
+ #undef exp
  #define exp exponent
  
  #define ASSERT(expr) \



Reply via email to