Problem with KDE_DEPRECATED and msvc

Jaroslaw Staniek js at
Thu Jan 12 10:09:42 GMT 2006

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)

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?

regards / pozdrawiam,
  Jaroslaw Staniek / OpenOffice Polska

  Kexi Developer: |
  Kexi Support:
  Kexi For MS Windows:
  KDE3, KDE4 Libraries For Developing MS Windows Applications:

More information about the kde-core-devel mailing list