[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Conditional compilation
From: Michael Pyne <michael.pyne () kdemail ! net>
Date: 2006-05-01 0:22:42
Message-ID: 200604302022.52903.michael.pyne () kdemail ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 30 April 2006 19:47, Remi Villatel wrote:
> 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?
It's certainly legal. Was there a KDE 3 release without KDE_IS_VERSION()?
Seems so useful I'd be surprised if it wasn't around for all of KDE 3. =D
Regards,
- Michael Pyne
>
> Thanks,
[Attachment #5 (application/pgp-signature)]
>> 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