This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: V3 PATCH: cabs vs. IRIX


Mark Mitchell <mark@codesourcery.com> writes:

| This patch (not checked in, requesting approval) fixes the cabs thing
| on IRIX.  The problem is that this function is defined in libm on IRIX
| and prototyped in math.h.  That leads to a clash with complex-stub.h
| and (because the prototype is different) doesn't let us call the
| function from within abs(complex<FLOAT>).

Mark, this is fine.

| This patch fixes it, but is sort-of ugly.  To some extent, dealing
| with lots of systems makes for some inevitable ugliness, but maybe
| someone can do better?

Maybe, but for the time your version will do.  
It is just awful to use the complex stuff defined by different OSes
because there is not (yet) any standard.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com

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