Subject: Re: Compiling NetBSD with another compiler.
To: None <tech-userlevel@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-userlevel
Date: 10/13/2007 15:13:58
On Sat, Oct 13, 2007 at 01:01:09PM +0300, Aleksey Cheusov wrote:
> Why non-portable way of doing this renaming is used instead of
> just using macro like
> 
>    #define func func_new

What do you do about user code that #undef's func? That is valid for a
number of macro/function pairs (e.g. fgetc). What do you do about user
defined structs with a field "func"? That's perfectly valid C and would
break horrible depending on the include order of header files.

In short, there is *no* standard way to achieve this behaviour.

Joerg