[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using AC_C_INLINE blows up C++ tests
From: |
Albert Chin |
Subject: |
Re: Using AC_C_INLINE blows up C++ tests |
Date: |
Tue, 1 Jul 2003 17:18:49 -0500 |
User-agent: |
Mutt/1.4i |
On Tue, Jul 01, 2003 at 09:56:59AM -0700, Paul Eggert wrote:
> Albert Chin <address@hidden> 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 (address@hidden)