--===============0241124364== Content-Type: multipart/signed; boundary="nextPart2598878.UzmAqeG6em"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2598878.UzmAqeG6em Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday, 1. September 2005 10:47 pm, Toan T Nguyen wrote: > Hello, > > My KDE program uses setProgramLogo() method which is available > on KDE >= 3.4 only. So it cannot be compiled on KDE 3.3 desktop. I want to > add a #ifdef in my program to check for KDE version. Something like this: > > #ifdef KDEVERSION >= 3.4.0 > setProgramLogo(); > #endif Hava look at kdelibs/kdecore/kdeversion.h There you will find the defined values you need: #define KDE_VERSION_STRING "3.9.01 (>= 20050615)" #define KDE_VERSION_MAJOR 3 #define KDE_VERSION_MINOR 9 #define KDE_VERSION_RELEASE 01 #define KDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c)) Carsten --nextPart2598878.UzmAqeG6em Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDF2uy29GaGyAowFcRAuvhAJ4jmyZzD2nUi1kZphBOwrQzZGLrjQCgk/hg AVrAEMFEzU7/kArpPa3XMto= =bQ++ -----END PGP SIGNATURE----- --nextPart2598878.UzmAqeG6em-- --===============0241124364== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline = >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e << --===============0241124364==--