KDE_EXPORT and compilation breakage in kdepim

Duncan Mac-Vicar P. duncan at kde.org
Fri Dec 3 19:24:36 GMT 2004


On Friday 03 December 2004 09:46, Reinhold Kainhofer wrote:
> Okay, I'll restate: "We really need to get kdepim to compile with kdelibs
> 3.3.x, where x=0,1,2,...".

Reinhold,
For Kopete we have a kopete_export.h

it was like:

#ifndef KOPETE_EXPORT_H
#define KOPETE_EXPORT_H
#include <kdemacros.h>
#define KOPETE_EXPORT KDE_EXPORT
#endif


Then, to make it compile with kdelibs 3.3.1, I changed it to:

#ifndef KOPETE_EXPORT_H
#define KOPETE_EXPORT_H

#include <kdemacros.h>
#include <kdeversion.h>

#if KDE_IS_VERSION(3,3,2)
#define KOPETE_EXPORT KDE_EXPORT
#else
#define KOPETE_EXPORT
#endif

#endif





More information about the kde-core-devel mailing list