User-namespace pre#defines - new approach

Christopher Faylor cgf@redhat.com
Mon Apr 15 20:29:00 GMT 2002


On Mon, Apr 15, 2002 at 05:15:59PM -0700, Zack Weinberg wrote:
>On Mon, Apr 15, 2002 at 02:01:51PM -0700, Richard Henderson wrote:
>> On Mon, Apr 15, 2002 at 12:48:12PM -0700, Zack Weinberg wrote:
>> > The effect of --deprecated-macro FOO is to cause
>> > cpplib to define FOO, __FOO, and __FOO__; FOO gets left out if
>> > -ansi/-std=c*, and if it is defined, using it generates a warning.
>> 
>> Everything but the last for windows.  Or perhaps you suppress
>> the warning for system headers?  I don't know whether or not
>> the affected symbols are actively requried for user code...
>
>The idea was to continue to use -D for symbols where it isn't
>practical to deprecate them, such as _cdecl on Windows.

Hmm.  I made a conscious effort to read the whole thread before
responding and then still missed this thanks to some funky threading in
mutt.  :-)

I see what you're saying now.  I'm still not sure about the name
--deprecated-macro, though.

cgf



More information about the Gcc-patches mailing list