Re: [patch] __func__ -> __FUNCTION__

H. Peter Anvin (hpa@zytor.com)
Tue, 13 Aug 2002 01:19:07 -0700


Muli Ben-Yehuda wrote:
> On Tue, Aug 13, 2002 at 01:09:39AM -0700, H. Peter Anvin wrote:
>
>>Muli Ben-Yehuda wrote:
>>
>>>How about:
>>>
>>>/* early gcc compilers lose on __func__ */
>>>#ifndef __func__
>>>#define __func__ __FUNCTION__
>>>#endif /* !defined __func__ */
>>
>>__func__ isn't a macro; it's a compiler token.
>
>
> Works for me(TM).
>

But it won't work on a compiler that actually *supports* __func__...

I think that is gcc 3.1 or higher, but I'm not the authority...

> ObCompleteyUnrelatedQuestions: where can I find klibc?

ftp://ftp.kernel.org/pub/linux/libs/klibc/

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/