This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C99 headers namespace patch


>>>>> James Antill writes:

 > "Joseph S. Myers" <jsm28@cam.ac.uk> writes:
>> This patch fixes some of the trivial C99 namespace issues in the glibc
>> headers previously reported.

 >  Sorry, maybe I missed something but...

>> --- math/tgmath.h	Wed Aug  2 00:58:36 2000
>> +++ math/tgmath.h.new	Sat Aug 19 18:30:52 2000
>> @@ -345,7 +345,7 @@
>> /* Error and gamma functions.  */
>> #define erf(Val) __TGMATH_UNARY_REAL_ONLY (Val, erf)
>> #define erfc(Val) __TGMATH_UNARY_REAL_ONLY (Val, erfc)
>> -#define gamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, gamma)
>> +#define tgamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, tgamma)
>> #define lgamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, lgamma)

 >  The above looks like a source incompatible change, as gamma() exists
 > in my 2.1.3 headers.

tgmath should define only tgamma, this is right - 2.1.3 was wrong
(following an older draft of ISO C9x).

This is incompatible - but we we're not bug compatible ;-).

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]