Problem with KDE_DEPRECATED and msvc
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Fri Jan 13 15:31:04 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jaroslaw Staniek schrieb:
> Christian Ehrlicher said the following, On 2006-01-11 22:01:
>
>> Hi,
>>
>> Msvc doesn't like KDE_DEPRECATED behind the function declaration - it
>> must be before. See attached patch.
>> Is this ok or does gcc need it the other way?
>
>
> Hmm, it worked before (kdelibs3.x), any problems now?
>
> # define KDE_DEPRECATED __declspec(deprecated)
Just when it is defined after the function - see dcopclient.h:420
>
>
> In other post you wrote:
>
>> The deprecated warning is disabled anyway (because MS declared strcpy &
>> friends as deprecated since msvc2005)."
>
> Maybe we can wrap these headers by adding pragma or so, and then
> readding it again after #include?
I'll take a try.
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDx8e4HAIuqbOiZ+kRAia0AJ4wQwQ2BUgxPLgZUtGprkTEP173MgCeJS1R
cp3sy0yPIC8mUvOsDdSZQGI=
=hR0Z
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list