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 ...

Stefan Farfeleder stefanf at FreeBSD.org
Sun Jul 4 09:24:54 PDT 2004


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


More information about the cvs-all mailing list