[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Conditional compilation
From: Remi Villatel <maxilys () tele2 ! fr>
Date: 2006-04-30 23:47:55
Message-ID: 44554CAB.6030107 () tele2 ! fr
[Download RAW message or body]
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 <kdeversion.h>
#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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic