[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: conditional compilation based on KDE version?
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2004-07-29 18:12:50
Message-ID: 200407292012.52324.kde () carewolf ! com
[Download RAW message or body]

On Thursday 29 July 2004 18:16, Josef Weidendorfer wrote:
> On Thursday 29 July 2004 13:26, Jeroen Wijnhout wrote:
> > On Thursday 29 July 2004 12:51, André Somers wrote:
> > > >On Thursday 29 July 2004 12:17, André Somers wrote:
> > > >> >On Thursday 29 July 2004 12:03, André Somers wrote:
> > > >> >> How can I
> > > >> >> check if the KDE version is 3.2 or higher?
> > > >> >
> > > >> >#include <kdeversion.h>
> > > >> >
> > > >> >#ifdef KDE_IS_VERSION(3,2,0)
> > >
> > > ...
> > >
> > > #define KDE_IS_VERSION(a,b,c) ( KDE_VERSION >= KDE_MAKE_VERSION(a,b,c)
> > > )
>
> Isn't the above #ifdef wrong? As KDE_IS_VERSION is always defined, this
> will always give true. It should be
>
> #if KDE_IS_VERSION(3,2,0)
>
Ofcourse! Forget what I wrote.


`Allan
 
>> 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