Subject: Re: CVS commit: syssrc/sys/dev/cardbus
To: Perry E. Metzger <perry@wasabisystems.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 11/22/2001 08:20:02
On Thu, Nov 22, 2001 at 11:02:56AM -0500, Perry E. Metzger wrote:
> > But pre-NEW_TOOLCHAIN compiler doesn't recognize __func__ (that's why
> > it was able to be used for other purpose).
>
> Oh, I see what you mean.
>
> It is still wrong. __FUNCTION__ is special to gcc! You have to name
> the thing something else.
Uh, wrong.
Better solution is to handle this in <sys/cdefs.h>. If the compiler
revision is too old to understand __func__, then provide:
#define __func__ __FUNCTION__
(assuming that will work -- I don't know, so I suggest someone try it :-)
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>