Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 18:24:45 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib malloc.c src/libexec/rtld-elf rtld_lock.c src/sys/boot/common ufsread.c src/sys/dev/hifn hifn7751.c src/sys/dev/pcf pcfvar.h src/sys/i386/linux linux_ptrace.c src/sys/i386/pci pci_cfgreg.c src/sys/kern ...
Message-ID:  <20040704162438.GB810@wombat.fafoe.narf.at>
In-Reply-To: <200407041611.i64GB3bP049753@repoman.freebsd.org>
References:  <200407041611.i64GB3bP049753@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 04, 2004 at 04:11:03PM +0000, Stefan Farfeleder wrote:
>   Log:
>   Consistently use __inline instead of __inline__ as the former is an empty macro
>   in <sys/cdefs.h> for compilers without support for inline.

The heuristic if we support inline is currently a bit lame, I'd prefer
something along these lines:

#if defined(__cplusplus) || __STDC_VERSION__ >= 199901
#define	__inline	inline		/* convert to C++/C99 keyword */
#elif !(defined(__GNUC__) || defined(__INTEL_COMPILER))
#define	__inline			/* delete GCC keyword */
#endif

Stefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040704162438.GB810>