[Kde-accessibility] KDE_EXPORT "improvement"

Gary Cramblitt garycramblitt at comcast.net
Sun Jan 30 05:39:34 CET 2005


mlaurent applied a patch to several of the kdeaccessibility apps today 
(kbstateapplet and kttsd are two I know of) which unfortunately causes 
problems when compiling for KDE < 3.3.2.

The patch adds KDE_EXPORT macro to class declarations that must be exported in 
libraries.  thiago tells me that KDE_NO_EXPORT is the default for KDE 3.4, so 
these are now required if you want it exported.  This is supposed to save on 
lib sizes and relocations.

There was some kind of problem with KDE_EXPORT definition in kdemacros.h in 
kdelibs < 3.3.2.  Something to do with gcc "visibility".

My fix was to create the following kdeexportfix.h file and include immedately 
after each "#include <kdemacros.h>" statement:

#include <kdeversion.h>
#if KDE_VERSION < KDE_MAKE_VERSION (3,3,2)
#undef KDE_EXPORT
#define KDE_EXPORT
#endif

I added this to kbstateapplet and kttsd, but you may wish to check my work as 
I don't fully understand the ramifications of this.

Thanks
-- 
Gary Cramblitt (aka PhantomsDad)
KDE Text-to-Speech Maintainer
http://accessibility.kde.org/developer/kttsd/index.php


More information about the kde-accessibility mailing list