Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: syssrc/sys/dev/cardbus



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@localhost>



Home | Main Index | Thread Index | Old Index