On Tue, Jul 01, 2003 at 09:56:59AM -0700, Paul Eggert wrote:
> Albert Chin <[EMAIL PROTECTED]> writes:
> 
> > How about the patch below.
> 
> That patch (archived in
> <http://mail.gnu.org/archive/html/autoconf/2003-06/msg00099.html>)
> assumes that 'inline' always works with every C++ compiler.  Is this
> assumption correct?  If not, we should instead modify Autoconf to test
> 'inline' separately for both C and C++.

Works fine for Sun CC 5.3+, HP-UX aCC A.03.37+, IBM xlC 6.0+, Tru64
UNIX cxx 6.5+, GCC, and IRIX CC 7.4+. I cannot speak for anything
else.

The correct solution is checking for 'inline' for whatever the current
language is. Of course, this means programmers cannot use 'inline' for
C and C++ which is counterintuitive so the patch might be good enough.

-- 
albert chin ([EMAIL PROTECTED])


Reply via email to