Problem with KDE_DEPRECATED and msvc
Ch.Ehrlicher at gmx.de
Fri Jan 13 15:31:04 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Jaroslaw Staniek schrieb:
> Christian Ehrlicher said the following, On 2006-01-11 22:01:
>> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the kde-core-devel