lkml.org 
[lkml]   [2002]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] __func__ -> __FUNCTION__
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.056 / U:1.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site