From kde-devel Sun Apr 30 23:47:55 2006 From: Remi Villatel Date: Sun, 30 Apr 2006 23:47:55 +0000 To: kde-devel Subject: Conditional compilation Message-Id: <44554CAB.6030107 () tele2 ! fr> X-MARC-Message: https://marc.info/?l=kde-devel&m=114644093122443 Hi there, What I need to be able to compile something for an older version of KDE is to remove a few lines from my sources. Here is what I found in order to do that: #include #ifndef KDE_IS_VERSION #define KDE_IS_VERSION(a, b, c) 0 #endif Then... #if KDE_IS_VERSION(3, 5, 0) line to remove line to remove ... #endif Is this "legal" or is there another way? Thanks, -- ================== Remi Villatel maxilys_@_tele2.fr ================== >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<