Thiago Macieira thiago at
Wed Mar 1 10:52:47 GMT 2006

Nicolas Goutte wrote:
>On Wednesday 01 March 2006 10:44, Luciano Montanaro wrote:
>> On Wednesday 01 March 2006 07:46, Christian Ehrlicher wrote:
>> > Hi,
>> >
>> > Can someone tell me why I need to place KDE_DEPRECATED behind the
>> > deprecated function and why it won't work when it's written before?
>> > Qt's deprecated-macro is placed before the function and works fine.
>> > The problem is that msvc only allows it in front of the function and
>> > therefore we can't use KDE_DEPRECATED for msvc...
>> KDE_DEPRECATED expands to __attribute__((deprecated)) with gcc, which
>> should be put after the function declaration to work. I think this
>> limitation has been lifted for newer gcc versions, so maybe it can be
>> put before the function declaration as for the inline function.
>If you do so, then check the gcc version and disable it for older gcc
>versions, a gcc 3.3.1 does not allow it.


and always use it in the before position. That macro already does the gcc 
3.3 checking.

If your compiler doesn't support that, you can't build Qt4 anyways, so 
it's not a problem.

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde 
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list